We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93607bc commit f8749f5Copy full SHA for f8749f5
.github/workflows/publish.yml
@@ -0,0 +1,24 @@
1
+name: Publish dotnet package
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v4
13
+ - name: Setup .NET
14
+ uses: actions/setup-dotnet@v4
15
+ with:
16
+ dotnet-version: 9.0
17
+ - name: Build
18
+ run: dotnet build --configuration Release
19
+ - name: Pack
20
+ run: dotnet pack --configuration Release
21
+ - name: Publish the package to nuget.org
22
+ run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
23
+ env:
24
+ NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
0 commit comments