Skip to content

Commit 9b74959

Browse files
committed
fix: add env variables to job-level scope
1 parent 7b3daf3 commit 9b74959

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/prod.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
env:
11+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
12+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
13+
1014
steps:
1115
- name: Checkout
1216
uses: actions/checkout@v4
@@ -26,7 +30,4 @@ jobs:
2630
run: pnpm install --frozen-lockfile
2731

2832
- name: Build and Deploy
29-
run: pnpm run deploy
30-
env:
31-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
32-
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
33+
run: pnpm run deploy

0 commit comments

Comments
 (0)