-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from joakimskoog/pr-ci
Pr ci
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '*.md' | ||
|
||
jobs: | ||
build-deploy: | ||
name: Build & Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout code | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Login Azure | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
# Build & publish | ||
- name: Build & Publish | ||
run: | | ||
dotnet restore | ||
dotnet build -c Release | ||
dotnet publish src/AnApiOfIceAndFire -c Release --property:PublishDir=publish/anapioficeandfire | ||
# Deploy to Azure | ||
- name: Deploy to Azure | ||
uses: azure/webapps-deploy@v3 | ||
with: | ||
app-name: anapioficeandfire | ||
package: src/AnApiOfIceAndFire/publish/anapioficeandfire | ||
|
||
- name: logout | ||
run: | | ||
az logout |
This file contains 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