Skip to content

Merge pull request #6 from dubinc/cookie-options #21

Merge pull request #6 from dubinc/cookie-options

Merge pull request #6 from dubinc/cookie-options #21

Workflow file for this run

name: Deploy Analytics Script to Cloudflare Pages
on:
push:
branches:
- main
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/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_KEY }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'dub-cdn'
directory: 'packages/script/dist'