Pass the affiliate username in the analytics body #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |