Skip to content

Commit ee9b633

Browse files
committed
fix(ci): use D1 deployment credential
1 parent 83f70bf commit ee9b633

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/deploy-cloudflare-subscriptions.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ jobs:
4949
--remote
5050
--config workers/subscriptions/wrangler.jsonc
5151
env:
52-
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
52+
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_D1_API_TOKEN }}
5353

5454
- name: Deploy exact commit
5555
run: >-
5656
pnpm exec wrangler deploy
5757
--config workers/subscriptions/wrangler.jsonc
5858
--message "GitHub ${GITHUB_SHA}"
5959
env:
60-
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
60+
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_D1_API_TOKEN }}
6161

6262
- name: Verify D1 binding and CORS
6363
run: node scripts/verify-subscriptions-worker.mjs

0 commit comments

Comments
 (0)