worker env vars fix

This commit is contained in:
Jeff Emmett 2025-09-02 11:04:55 +02:00
parent a8c9bd845b
commit c99b9710b5
1 changed files with 7 additions and 6 deletions

View File

@ -24,9 +24,10 @@ jobs:
working-directory: ./worker
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: "worker"
command: deploy
run: |
npm install -g wrangler@3.107.3
wrangler deploy
working-directory: ./worker
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}