-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (38 loc) · 1.16 KB
/
build_deploy.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
48
49
50
51
name: Build and deploy
on:
push:
branches: [ master ]
pull_request:
types: [closed]
branches: [ master ]
jobs:
test-netcore-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Run tests netcoreapp3.1
run: dotnet test -c Release -f netcoreapp3.1
test-netcore-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Run tests netcoreapp3.1
run: dotnet test -c Release -f netcoreapp3.1
test-net461:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Run tests net461
run: dotnet test -c Release -f net461
nuget:
runs-on: windows-latest
needs: [test-netcore-win,test-netcore-linux,test-net461]
steps:
- uses: actions/checkout@v1
- name: Create and push NuGet package
run: |
dotnet pack src/Ini.Net/Ini.Net.csproj -c Release -o nuget -p:IncludeSymbols=true
dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate