Repository navigation
Deploy stratalab.cc automatically on merge to main - #11
Merged
Merged
Conversation
The Pages project strata-web was created by direct upload, so Cloudflare never saw pushes and the site kept serving the Nov 2 manual deploy. Add a workflow that typechecks, tests, builds and deploys apps/web on every push to main, to whichever branch Cloudflare reports as production. Build the runtime image from main too, since the old deploy branch is merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HEuHRzKYJGum74qg95GMHa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Bharat · project thread
Why the site went stale
stratalab.cc is the Cloudflare Pages project
strata-web, which was created by direct upload (wrangler pages deployfrom a laptop, perinfra/azure/README.md). Direct-upload projects have no Git connection, so merges like #8 and #10 never reached the site. (main.strata-web-6ur.pages.devreturns 404: Cloudflare has never seenmain.)What this changes
.github/workflows/deploy-web.yml(new): on every push tomainthat touchesapps/web/(or a manual run), typechecks, tests, builds and runswrangler pages deploy. It asks the Cloudflare API for the project's production branch and deploys to it, so the build lands on stratalab.cc whatever that branch is named. Then it checks the site answers 200.NEXT_PUBLIC_*build values default to the live origins (read from the current bundle and CSP; the Supabase value is the publishable key every browser already gets). A local build with them reproduces the liveconnect-srcexactly. Repository variables of the same name override them.runtime-image.ymlnow builds onmaininstead of the mergedcodex/deploy-stratalab-ccbranch. It only builds the image; Azure deploy stays manual.docs/DEPLOYMENT.md§3.3 andinfra/azure/README.md.Needs two repository secrets before it can deploy
CLOUDFLARE_API_TOKEN(Account → Cloudflare Pages → Edit) andCLOUDFLARE_ACCOUNT_ID. Without them the workflow stops at its first step with a clear error.Generated by Claude Code