File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 - ' dashboard/**'
99 - ' migrations/**'
1010 - ' wrangler.jsonc'
11- - ' .github/workflows/deploy-dashboard .yml'
11+ - ' .github/workflows/deploy.yml'
1212 pull_request :
1313 paths :
1414 - ' src/**'
1515 - ' dashboard/**'
1616 - ' migrations/**'
1717 - ' wrangler.jsonc'
18- - ' .github/workflows/deploy-dashboard .yml'
18+ - ' .github/workflows/deploy.yml'
1919
2020permissions :
2121 contents : read
4747
4848 - name : Deploy Worker + assets
4949 if : github.ref == 'refs/heads/main'
50- run : npx wrangler deploy
50+ run : npx wrangler deploy --define CLOUDFLARE_D1_DATABASE_ID:"${CLOUDFLARE_D1_DATABASE_ID}"
5151 env :
5252 CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
5353 CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Original file line number Diff line number Diff line change 22 "$schema" : " node_modules/wrangler/config-schema.json" ,
33 "name" : " coverage-tracker" ,
44 "main" : " src/index.ts" ,
5+ "send_metrics" : false ,
56 "compatibility_date" : " 2026-06-25" ,
67 "compatibility_flags" : [" nodejs_compat" ],
78 "assets" : {
2627 "database_id" : " $CLOUDFLARE_D1_DATABASE_ID" ,
2728 "migrations_dir" : " migrations"
2829 }
29- ]
30+ ],
31+ "secrets" : {
32+ "required" : [
33+ " GITHUB_APP_ID" ,
34+ " GITHUB_APP_CLIENT_ID" ,
35+ " GITHUB_APP_PRIVATE_KEY" ,
36+ " GITHUB_WEBHOOK_SECRET" ,
37+ " CF_ACCESS_AUD" ,
38+ " CF_ACCESS_TEAM_DOMAIN"
39+ ]
40+ }
3041 // Secrets (set with `wrangler secret put <NAME>`):
3142 // GITHUB_APP_ID
3243 // GITHUB_APP_CLIENT_ID
You can’t perform that action at this time.
0 commit comments