-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.32 KB
/
publish-app.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
39
40
41
42
43
44
45
46
47
# Birder\bin\publish
# deploying Deploying "Birder\bin\publish" instead of selected folder "Birder". Use "appService.deploySubpath" to change this behavior.
name: publish
on:
push:
branches: [ master ]
env:
AZURE_WEBAPP_NAME: birder-server
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: 9.0.x
jobs:
publish:
runs-on: windows-latest # ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: |
cd Birder
dotnet build --no-restore
dotnet publish -c Release -o ./bin/publish
# dotnet publish -c Release -o ../dotnet-webapp -r linux-x64 --self-contained true /p:UseAppHost=true
- name: Test
run: |
cd Birder.Tests
dotnet test --no-restore --verbosity normal
# run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --settings birder.tests/coverlet.runsettings.xml
- uses: azure/webapps-deploy@v2
name: Deploy
with:
app-name: birder-server
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/Birder/bin/publish'