-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (41 loc) · 1.87 KB
/
Copy pathrelease.yml
File metadata and controls
56 lines (41 loc) · 1.87 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
52
53
54
55
56
name: release
on:
release:
types:
- created
jobs:
release:
name: release
timeout-minutes: 5
runs-on: ubuntu-latest
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- name: Clone
uses: actions/checkout@v4
- name: DotnetVersion
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build
- name: Pack AprsSharp.AprsParser
run: dotnet pack src/AprsParser/AprsParser.csproj --configuration Release --no-build
- name: Pack AprsSharp.AprsIsClient
run: dotnet pack src/AprsIsClient/AprsIsClient.csproj --configuration Release --no-build
- name: Pack AprsSharp.KissTnc
run: dotnet pack src/KissTnc/KissTnc.csproj --configuration Release --no-build
- name: Pack AprsSharp.Shared
run: dotnet pack src/Shared/Shared.csproj --configuration Release --no-build
- name: Publish AprsSharp.AprsParser
run: dotnet nuget push src/AprsParser/bin/Release/AprsSharp.AprsParser.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: Publish AprsSharp.AprsIsClient
run: dotnet nuget push src/AprsIsClient/bin/Release/AprsSharp.AprsIsClient.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: Publish AprsSharp.KissTnc
run: dotnet nuget push src/KissTnc/bin/Release/AprsSharp.KissTnc.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
- name: Publish AprsSharp.Shared
run: dotnet nuget push src/Shared/bin/Release/AprsSharp.Shared.*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json