-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (29 loc) · 1.05 KB
/
azure_dinnerkillpoints.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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