Skip to content

Update deps.

Update deps. #44

# 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.0.5
with:
nuget-version: latest
- name: dotnet publish
run: dotnet publish -c Release -r win-x86 --no-self-contained -o ${{env.DOTNET_ROOT}}/myapp
- name: install Graphviz
run: nuget install Graphviz -version 2.38.0.2 -NonInteractive -OutputDirectory ${{env.DOTNET_ROOT}}/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: ${{env.DOTNET_ROOT}}/myapp