From 55b9fc54310f9663503d7b6092028f470f15bbbb Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Tue, 4 Aug 2026 12:24:36 +0700 Subject: [PATCH] ci: add --branch=main to pages deploy for production promotion (#472) 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. Co-authored-by: ajianaz --- .github/workflows/deploy-website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index f7438ae..2bebcb3 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -52,4 +52,4 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} preCommands: npx wrangler pages project create cora-code --production-branch=main || true - command: pages deploy docs/.vitepress/dist/ --project-name=cora-code --commit-dirty=true + command: pages deploy docs/.vitepress/dist/ --project-name=cora-code --commit-dirty=true --branch=main