File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 88 - completed
99
1010permissions :
11- contents : read # Required for checkout/tag inspection
11+ contents : write # Required to create GitHub releases
1212 actions : read # Required to download artifacts from another workflow run
1313
1414jobs :
1818 runs-on : ubuntu-latest
1919 env :
2020 HAS_RELEASE_TAG : ' false'
21+ RELEASE_TAG : ' '
2122
2223 steps :
2324 - name : Checkout tagged commit
4950 github-token : ${{ secrets.GITHUB_TOKEN }}
5051 artifact-output-path : nuget-packages
5152 NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
53+
54+ - name : Create GitHub release
55+ if : env.HAS_RELEASE_TAG == 'true'
56+ uses : ncipollo/release-action@v1
57+ with :
58+ tag : ${{ env.RELEASE_TAG }}
59+ name : ${{ env.RELEASE_TAG }}
60+ generateReleaseNotes : true
61+ skipIfReleaseExists : true
62+ artifacts : nuget-packages/**/*.nupkg
63+ artifactErrorsFailBuild : false
64+ token : ${{ secrets.GITHUB_TOKEN }}
5265
You can’t perform that action at this time.
0 commit comments