Reuse existing Cloudflare preview secret

This commit is contained in:
Kevin
2026-09-02 00:55:12 -04:00
parent 56a80951b7
commit 15f03016b5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,5 +37,5 @@ jobs:
- name: Deploy non-production Worker - name: Deploy non-production Worker
run: npx wrangler deploy --config "wrangler/${SITE_KEY}.jsonc" run: npx wrangler deploy --config "wrangler/${SITE_KEY}.jsonc"
env: env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_WORKER_PREVIEW_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
+1 -1
View File
@@ -35,7 +35,7 @@ routes, account IDs, or secrets.
The Gitea workflow deploys only a non-production Worker from the pilot branch: 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. `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. Routine jobs do not configure DNS or custom domains.
Production hostname attachment and the `www` redirect are manual, Production hostname attachment and the `www` redirect are manual,