File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1111 pull_request :
1212 branches :
1313 - main
14+ - release
1415 paths-ignore :
1516 - ' **/*.md'
1617 - ' **/*.gitignore'
7475 echo "PKG_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
7576 echo "RELNOTES=$relnotes" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
7677
78+ - name : Push to NuGet
79+ if : ${{ github.ref == 'refs/heads/release' }}
80+ run : dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
81+
7782 - name : Tag and Release
78- if : ${{ github.event_name != 'pull_request' }}
83+ if : ${{ github.ref == 'refs/heads/release' && github. event_name != 'pull_request' }}
7984 id : tag_release
8085 uses : softprops/action-gh-release@v0.1.13
8186 with :
You can’t perform that action at this time.
0 commit comments