Skip to content

Merge pull request #31 from dubinc/short-domain #79

Merge pull request #31 from dubinc/short-domain

Merge pull request #31 from dubinc/short-domain #79

Workflow file for this run

name: Deploy Analytics Script to Cloudflare Pages
on:
push:
paths:
- 'packages/script/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
uses: ./.github/composite-actions/install
- name: Install Dependencies and Build
run: pnpm --filter @dub/analytics-script build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_KEY }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=dub-cdn --commit-dirty=true
workingDirectory: packages/script
packageManager: pnpm