Cloudflare Workers Builds — Disable Auto-Deploy
This repo deploys the hosted frontend (apps/web) only via GitHub Actions.github/workflows/deploy-web.yml→cloudflare/wrangler-action@v3→wrangler deploy. Cloudflare dashboard “Workers Builds” (git-connected auto-deploy) must be disabled or it will race/double-deploy on everymasterpush and hide timing/failure from GitHub.
Current state
- Worker name:
gaia(apps/web/wrangler.jsonc) - Account ID:
d65fe47d4d3b4f2725e87b91c772cbc3 - Secrets:
CLOUDFLARE_API_TOKEN(minimal: Workers Scripts Write + R2 Write/Read + Routes Write, expires 2027-08-21) +CLOUDFLARE_ACCOUNT_ID - Workflow:
deploy-web.ymlbuildspnpm --filter ./apps/web cf:build, uploads.open-next, deploys viawrangler-action@v3onpush: master(pathsapps/web/**), preview aliaspr-<n>on PRs. Reports duration to$GITHUB_STEP_SUMMARY, fails visibly (::error), usesenvironment: production(requires approval if configured).
Manual dashboard step (required, one-time)
- Open https://dash.cloudflare.com → select account
d65fe47d…→ Workers & Pages → gaia. - Go to Settings → Builds (or Settings → Build → Build configuration, UI varies).
- If a Git repository is shown as connected:
- Click Disconnect / Remove build integration, or
- Set Build trigger to None / toggle Enable automatic builds OFF.
- Save. Worker should show Builds: Disabled or No git repo connected.
- Verify: push to
mastershould trigger only the GitHubDeploy Web (Cloudflare)workflow, not a dashboard build.
API attempt (best-effort)
Dashboard Builds has no stable public API for all plans; the endpoint is often dashboard-only. The workflow’spreflight step probes the API informationaly and never blocks the deploy. For a manual local attempt:
/workers/scripts/gaia, /workers/services/gaia, etc.) and reports whether a Git connection is visible. If it reports a connected repo, perform the manual step above.
Verification
Why not dashboard Builds?
- Deploys are invisible in GitHub checks (no duration, no failure annotation, no
environment: productiongate). - Double-deploy race on
masterpushes (dashboard + GitHub) can deploy different commits. - This workflow makes deploys visible, timed, and auditable alongside backend Swarm deploys.

