We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f5e21b + 0d4c162 commit 7771ac8Copy full SHA for 7771ac8
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish to NuGet
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v[0-9]+.[0-9]+.[0-9]+'
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
16
+ - name: Setup .NET
17
+ uses: actions/setup-dotnet@v4
18
+ with:
19
+ dotnet-version: 9.0.x
20
21
+ - name: Restore
22
+ run: dotnet restore
23
24
+ - name: Build
25
+ run: dotnet build --configuration Release --no-restore
26
27
+ - name: Pack
28
+ run: dotnet pack --configuration Release --no-build --output ./artifacts
29
30
+ - name: Publish to NuGet
31
+ run: dotnet nuget push ./bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
0 commit comments