File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 7373 runs-on : windows-2019
7474 needs : build
7575 if : |
76- (github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'nuget'))) ||
77- (github.event.pull_request.head.repo.full_name != github.repository && contains(github.event.pull_request.head.ref, 'nuget'))
76+ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'nuget') || startsWith(github.ref, 'refs/tags/v') )) ||
77+ (github.event.pull_request.head.repo.full_name != github.repository && ( contains(github.event.pull_request.head.ref, 'nuget') || startsWith(github.event.pull_request.head.ref, 'refs/tags/v') ))
7878
7979 env :
8080 DOTNET_NOLOGO : true
@@ -111,3 +111,9 @@ jobs:
111111 run : |
112112 cd artifacts
113113 dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/mono/index.json" --skip-duplicate
114+
115+ - name : Publish package to nuget.org
116+ if : startsWith(github.ref, 'refs/tags/v')
117+ run : |
118+ cd artifacts
119+ dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source "https://api.nuget.org/v3/index.json" --skip-duplicate
You can’t perform that action at this time.
0 commit comments