Skip to content

ci: add --branch=main to pages deploy for production promotion - #472

Merged
ajianaz merged 1 commit into
developfrom
ci/deploy-branch-main
Aug 4, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/deploy-branch-main

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

What

Add explicit --branch=main flag to the Cloudflare Pages deploy command in deploy-website.yml.

Why

Without --branch=main, wrangler detects the triggering branch context. When deploy runs via workflow_dispatch from develop, wrangler deploys as a non-production deployment — the new build never reaches the production alias (codecora.dev).

This matches the pattern already used in the website repo deploy workflow which explicitly passes --branch=main.

Testing

  • Diff verified — single line change, same pattern as codecoradev/website/.github/workflows/deploy-website.yml
  • After merge to develop → main, deploy will promote to production correctly

Without explicit --branch=main, wrangler may detect the triggering
branch (develop via workflow_dispatch) and deploy as non-production.
This matches the pattern used in the website repo deploy workflow.
@ajianaz
ajianaz merged commit 55b9fc5 into develop Aug 4, 2026
13 checks passed
@ajianaz
ajianaz deleted the ci/deploy-branch-main branch August 4, 2026 05:24
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