ci: add GitHub Actions deploy workflow for Azure App Service#43
Merged
Conversation
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>
ce7d19d to
51b58e1
Compare
chrisjwalk
approved these changes
Mar 15, 2026
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.
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
.github/workflows/deploy.yml— triggers viaworkflow_runon CI success, builds API + web app, logs in to Azure via OIDC, deploysdist/to App Serviceazure-pipelines.yml— GitHub Actions now handles both CI and deploymentAzure setup (already complete)
angular-cli-netcore-ngrx-starter-githubenvironment:productionAngularCliNetcoreNgrxStarterresource groupproductionenvironment created with all 4 secrets setDeploy target
https://angularclinetcorengrxstarter.azurewebsites.net