Skip to content

Commit

Permalink
ci: fix deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jun 4, 2024
1 parent 98470f2 commit a8036eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- main

env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
KV_LOCAL_ID: ${{ secrets.KV_LOCAL_ID }}
KV_PROD_ID: ${{ secrets.KV_PROD_ID }}
QUEUE_NAME_LOCAL: ${{ secrets.QUEUE_NAME_LOCAL }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_dispatch:

env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
KV_LOCAL_ID: ${{ secrets.KV_LOCAL_ID }}
KV_PROD_ID: ${{ secrets.KV_PROD_ID }}
QUEUE_NAME_LOCAL: ${{ secrets.QUEUE_NAME_LOCAL }}
Expand All @@ -31,5 +30,6 @@ jobs:
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: yarn build
command: publish
command: deploy
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

env:
BUILD_ENVIRONMENT: ${{ github.event.inputs.environment }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
KV_LOCAL_ID: ${{ secrets.KV_LOCAL_ID }}
KV_PROD_ID: ${{ secrets.KV_PROD_ID }}
QUEUE_NAME_LOCAL: ${{ secrets.QUEUE_NAME_LOCAL }}
Expand All @@ -36,5 +35,6 @@ jobs:
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: yarn build
command: publish --env ${{ github.event.inputs.environment }}
command: deploy --env ${{ github.event.inputs.environment }}

0 comments on commit a8036eb

Please sign in to comment.