Deployments
All deployments are automated via GitHub Actions. Pushes to main trigger a production deploy to Azure Static Web Apps.
Pipeline overview
Environments
| Environment | Trigger | URL |
|---|---|---|
| Preview | Pull request opened | Auto-generated by SWA |
| Production | Push to main | https://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 "/*"