ci: deploy to Azure Static Web Apps via GitHub Actions (EXP-1610) - #73
Closed
pmckinney-codat wants to merge 1 commit into
Closed
pmckinney-codat wants to merge 1 commit into
pmckinney-codat wants to merge 1 commit into
Conversation
Adds a GitHub Actions pipeline replacing Vercel hosting: build once, deploy PR previews to SWA preview environments, deploy main to production behind a GitHub environment approval gate, and clean up preview environments when PRs close. staticwebapp.config.json serves Docusaurus' 404.html for not-found routes on SWA. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Closing in favour of #74 — we're deploying legal to GitHub Pages (mirroring the engineering-blog setup) instead of Azure SWA. Change of approach recorded on EXP-1610; infrastructure-as-code#1445 is no longer needed for legal. — Posted by Claude on Phil's behalf |
This branch was successfully deployed
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.
EXP-1610 — migrate legal.codat.io off Vercel to Azure.
What
.github/workflows/deploy.yml): build once, thenmain→ deploy to production, gated behind theproductionGitHub environment (approval required)static/staticwebapp.config.json: serves Docusaurus'404.htmlfor not-found routes.Decisions (per EXP-1595)
NPM_TOKEN, consistent with what help.codat.io will needCompanion PRs
Before this can merge
AZURE_STATIC_WEB_APPS_API_TOKENset from the SWA deployment tokenNPM_TOKENset (base64-encoded ADO PAT, same value the Vercel build used)productionenvironment created in repo Settings → Environments with required reviewers (this is the approval gate)DNS cutover and Vercel decommission happen after this merges and prod is verified on the SWA default hostname.
Verification
npm run buildpasses locally on Node 22 (matches workflow)404.htmlandstaticwebapp.config.jsonat the root🤖 Generated with Claude Code