Skip to content

ci: add GitHub Actions deploy workflow for Azure App Service#43

Merged
chrisjwalk merged 2 commits into
mainfrom
feat/github-actions-deploy
Mar 15, 2026
Merged

ci: add GitHub Actions deploy workflow for Azure App Service#43
chrisjwalk merged 2 commits into
mainfrom
feat/github-actions-deploy

Conversation

@chrisjwalk-bot
Copy link
Copy Markdown
Collaborator

@chrisjwalk-bot chrisjwalk-bot commented Mar 14, 2026

Closes #48

Adds a GitHub Actions deploy workflow that triggers automatically after CI passes on main. Uses OIDC (passwordless) auth to deploy to Azure App Service.

Changes

  • Added .github/workflows/deploy.yml — triggers via workflow_run on CI success, builds API + web app, logs in to Azure via OIDC, deploys dist/ to App Service
  • Removed azure-pipelines.yml — GitHub Actions now handles both CI and deployment

Azure setup (already complete)

  • App Registration: angular-cli-netcore-ngrx-starter-github
  • Federated credential configured for environment:production
  • Contributor role assigned on AngularCliNetcoreNgrxStarter resource group
  • GitHub production environment created with all 4 secrets set

Deploy target

https://angularclinetcorengrxstarter.azurewebsites.net

chrisjwalk-bot and others added 2 commits March 14, 2026 22:05
Triggered via workflow_run after CI completes on main, so the deploy
only runs when all tests pass.

Uses OIDC (Federated Credentials) for passwordless Azure auth — no
long-lived client secrets. Requires 4 GitHub secrets to be configured:
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_SUBSCRIPTION_ID, AZURE_WEBAPP_NAME.

The dist/ directory is the complete deployment artifact:
- .NET API publish output at dist/ root (Api.dll etc.)
- Angular SPA at dist/apps/web-app/browser/ (served by Program.cs
  PhysicalFileProvider via Path.Combine(cwd, 'apps', 'web-app', 'browser'))

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Actions now handles CI (lint, test, build) and deployment
to Azure App Service via OIDC. The Azure DevOps pipeline is no
longer needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@chrisjwalk-bot chrisjwalk-bot force-pushed the feat/github-actions-deploy branch from ce7d19d to 51b58e1 Compare March 15, 2026 02:05
@chrisjwalk chrisjwalk merged commit 9323f3e into main Mar 15, 2026
2 checks passed
@chrisjwalk chrisjwalk deleted the feat/github-actions-deploy branch March 15, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add GitHub Actions deploy workflow for Azure App Service

2 participants