-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.42 KB
/
nuget.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
name: NuGet Package Deploy
on:
push:
tags:
- '[0-9]*.[0-9]*.[0-9]*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Pack and Push NuGet Package LNUnit
run: |
cd LNUnit
dotnet pack /p:Version=$GITHUB_REF_NAME --configuration Release
package=$(ls bin/Release/LNUnit*.nupkg)
dotnet nuget push $package --api-key ${{ secrets.NUGET }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Pack and Push NuGet Package LNUnit
run: |
cd LNUnit.LND
dotnet pack /p:Version=$GITHUB_REF_NAME --configuration Release
package=$(ls bin/Release/LNUnit.LND.*.nupkg)
dotnet nuget push $package --api-key ${{ secrets.NUGET }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Pack and Push NuGet Package LNBolt
run: |
cd LNBolt
dotnet pack /p:Version=$GITHUB_REF_NAME --configuration Release
package=$(ls bin/Release/LNBolt.*.nupkg)
dotnet nuget push $package --api-key ${{ secrets.NUGET }} --source https://api.nuget.org/v3/index.json --skip-duplicate