Skip to content

Add health check support #50

Add health check support

Add health check support #50

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy ASP.Net Core app to Azure Web App
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: install nuget
uses: nuget/setup-nuget@v1
with:
nuget-version: latest
- name: dotnet publish
run: dotnet publish -c Release -r win-x86 --no-self-contained -o myapp src/DkpWeb/DkpWeb.csproj
- name: install Graphviz
run: nuget install Graphviz -version 2.38.0.2 -NonInteractive -OutputDirectory myapp/graphviz
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'dinnerkillpoints'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_f333d2798e43497ebab8d1d92d762f8f }}
package: myapp