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 3cbd758 commit 4843c4dCopy full SHA for 4843c4d
.github/workflows/dotnet.yml
@@ -1,4 +1,4 @@
1
-# This workflow will build a .NET project
+# This workflow will build a .NET project and publish changes to NuGet
2
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3
4
name: .NET
@@ -26,3 +26,9 @@ jobs:
26
run: dotnet build --no-restore
27
- name: Test
28
run: dotnet test --no-build --verbosity normal
29
+ - name: Pack
30
+ run: dotnet pack --no-build -o ./nupkg
31
+ - name: Push to NuGet
32
+ env:
33
+ NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
34
+ run: dotnet nuget push ./nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
0 commit comments