Merge pull request #266 from joakimskoog/bugfix-data-baratheon #4
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
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 }} | |
# Run setup | |
- name: Run AnApiOfIceAndFire.Setup | |
working-directory: src/AnApiOfIceAndFire.Setup | |
run: dotnet run -c Release | |
# 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 |