Skip to content

Deploy prod Pages releases to production branch#26

Merged
yourbuddyconner merged 1 commit into
mainfrom
conner/fix-prod-pages-deploy-branch
Jun 4, 2026
Merged

Deploy prod Pages releases to production branch#26
yourbuddyconner merged 1 commit into
mainfrom
conner/fix-prod-pages-deploy-branch

Conversation

@yourbuddyconner
Copy link
Copy Markdown
Collaborator

Summary

  • Force Cloudflare Pages deploys to use the production branch instead of Wrangler inferring HEAD from tag checkouts
  • Add a configurable PAGES_DEPLOY_BRANCH defaulting to main
  • Reuse the same Pages deploy helper for full deploy and client-only deploy

Why

Prod tag workflows check out a detached tag ref. Wrangler was deploying the client artifact to the head preview alias, so the Pages production URL could keep serving the older build even though the prod workflow succeeded.

Validation

  • bash -n scripts/deploy.sh
  • git diff --check

@yourbuddyconner yourbuddyconner requested a review from a team June 4, 2026 04:23
@yourbuddyconner yourbuddyconner merged commit d1c25a6 into main Jun 4, 2026
3 checks passed
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