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 3e89d7b commit 00d91d2Copy full SHA for 00d91d2
.github/workflows/publish.yml
@@ -0,0 +1,24 @@
1
+name: Publish package
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - 'v*.*.*'
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Setup .NET Core
16
+ uses: actions/setup-dotnet@v3.0.1
17
+ with:
18
+ dotnet-version: '6.0.x'
19
+ - name: Install dependencies
20
+ run: dotnet restore
21
+ - name: Build
22
+ run: dotnet build --configuration Release --no-restore
23
+ - name: Publish the package
24
+ run: dotnet nuget push "*/bin/Release/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
0 commit comments