Skip to main content

Deployments

All deployments are automated via GitHub Actions. Pushes to main trigger a production deploy to Azure Static Web Apps.

Pipeline overview

Environments

EnvironmentTriggerURL
PreviewPull request openedAuto-generated by SWA
ProductionPush to mainhttps://docs.charliemac.com

Manual deploy

If you need to trigger a deploy manually:

# From the repo root
npm run build

# Deploy using the SWA CLI (requires SWA CLI installed and logged in)
npx @azure/static-web-apps-cli deploy ./build \
--deployment-token $SWA_DEPLOYMENT_TOKEN \
--env production

Cache invalidation

Front Door Standard caches static assets at edge. After a deploy, the GitHub Actions workflow automatically purges the cache. If you need to purge manually:

az afd endpoint purge \
--resource-group rg-charlie-mac-docs \
--profile-name afd-charlie-mac-docs \
--endpoint-name docs \
--content-paths "/*"