A GitHub Actions → Azure CI/CD pipeline, from scratch
git push into a tested build, then a reproducible deployment to Azure — without ever touching a portal.
A declarative workflow
.github/workflows/ . A workflow triggers on an event ( push , pull_request ), chains jobs , and each job is a sequence of steps :
Secrets without secrets: OIDC
Deploying to Azure
- ›
azure/login@v2with the federated credentials - ›
Azure/static-web-apps-deploy@v1for the prerendered front end - ›
a smoke-test step that curls the production URL right after
Guardrails
main branch (required review, green CI required) and put the deployment behind a GitHub Environment with required reviewers for production. GitHub's environments docs cover manual approvals.
A good pipeline isn't the one that ships fastest — it's the one you trust enough to deploy on a Tuesday at 5 p.m. without an emergency meeting.