We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26f343 commit 8a81f70Copy full SHA for 8a81f70
1 file changed
.github/workflows/dotnet.yml
@@ -42,3 +42,22 @@ jobs:
42
with:
43
name: nuget-package
44
path: ./nupkgs/*.nupkg
45
+
46
+ deploy:
47
+ runs-on: ubuntu-latest
48
+ needs: build
49
+ if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
50
+ environment: nuget-production
51
52
+ steps:
53
+ - name: Download NuGet Package
54
+ uses: actions/download-artifact@v4
55
+ with:
56
+ name: nuget-package
57
+ path: ./nupkgs
58
+ - name: Setup .NET
59
+ uses: actions/setup-dotnet@v4
60
61
+ dotnet-version: 8.0.x
62
+ - name: Push to NuGet.org
63
+ run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments