-
Notifications
You must be signed in to change notification settings - Fork 83
51 lines (49 loc) · 1.46 KB
/
release.yml
File metadata and controls
51 lines (49 loc) · 1.46 KB
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: master
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
10.0.x
- name: Build library (.net core)
run: dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
10.0.x
- name: Build and run .net core tests
run: |
dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
dotnet test src/MIDTesters.Core/MIDTesters.Core.csproj
publish:
needs: [build, test]
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Publish package
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Publish NuGet
run: |
dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
nuget push src/OpenProtocolInterpreter/bin/release/OpenProtocolInterpreter.6.1.1.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate