Skip to content

Deploy to Cloudflare from main and release tags - #327

Merged
HDauven merged 1 commit into
mainfrom
ci/deploy-cloudflare
Nov 3, 2026
Merged

HDauven merged 1 commit into
mainfrom
ci/deploy-cloudflare

Conversation

@HDauven

@HDauven HDauven commented Nov 3, 2026

Copy link
Copy Markdown
Member

Every merge to main goes to testnet, and an explorer-v* tag goes to mainnet, so nothing reaches mainnet without being on testnet first.

  • Token: CLOUDFLARE_API_TOKEN is a secret of the cloudflare GitHub environment, which only main and explorer-v* tags can use, so a workflow changed in a PR can't read it. The job runs on a GitHub-hosted runner.
  • CLI: wrangler is pinned on a lockfile of its own in deploy/, outside the app's dependencies, installed without scripts and with signatures checked.

Don't merge until the secret is set: the merge itself triggers a testnet deploy.

Tried locally: a clean install, signature check and wrangler deploy --dry-run.

Every merge to main goes to testnet, and an explorer-v* tag to mainnet. The
token is a secret of a GitHub environment only those can use, and Cloudflare's
CLI has a lockfile of its own, outside the app's dependencies.
@HDauven
HDauven merged commit f91cd5f into main Nov 3, 2026
1 check passed
@HDauven
HDauven deleted the ci/deploy-cloudflare branch November 3, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant