Reuse existing Cloudflare preview secret
This commit is contained in:
@@ -37,5 +37,5 @@ jobs:
|
||||
- name: Deploy non-production Worker
|
||||
run: npx wrangler deploy --config "wrangler/${SITE_KEY}.jsonc"
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_WORKER_PREVIEW_TOKEN }}
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||
|
||||
@@ -35,7 +35,7 @@ routes, account IDs, or secrets.
|
||||
|
||||
The Gitea workflow deploys only a non-production Worker from the pilot branch:
|
||||
`3031023-xyz-www-preview` by default, or the manually selected `blog` site.
|
||||
It uses repository secrets `CF_WORKER_PREVIEW_TOKEN` and `CF_ACCOUNT_ID`.
|
||||
It uses the existing repository secrets `CF_API_TOKEN` and `CF_ACCOUNT_ID`.
|
||||
Routine jobs do not configure DNS or custom domains.
|
||||
|
||||
Production hostname attachment and the `www` redirect are manual,
|
||||
|
||||
Reference in New Issue
Block a user