Skip to content

Commit f99ea45

Browse files
committed
fix: update CI and deploy workflows to correctly handle JWT secret
1 parent 7f39262 commit f99ea45

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main, "copilot/**"]
5+
branches: ["copilot/**"]
66
paths-ignore:
77
- "**/*.md"
88
- "**/*.png"

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2020
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2121
CLOUDFLARE_DATABASE_ID: ${{ secrets.CLOUDFLARE_DATABASE_ID }}
22+
JWT_SECRET: ${{ secrets.JWT_SECRET }}
2223
steps:
2324
- name: Checkout
2425
uses: actions/checkout@v4
@@ -45,7 +46,7 @@ jobs:
4546
run: |
4647
cp wrangler.toml.example wrangler.toml
4748
sed -i "s/PLACEHOLDER_DATABASE_ID/${CLOUDFLARE_DATABASE_ID}/g" wrangler.toml
48-
sed -i "s/PLACEHOLDER_PROD_SECRET/${secrets.JWT_SECRET}/g" wrangler.toml
49+
sed -i "s/PLACEHOLDER_PROD_SECRET/${JWT_SECRET}/g" wrangler.toml
4950
5051
- name: Build all packages
5152
run: pnpm run build

0 commit comments

Comments
 (0)