File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1010# * uploads those artifacts to temporary workflow zip
1111# * on success, uploads the artifacts to a GitHub Release
1212#
13- # Note that the GitHub Release will be created with a generated
14- # title/body based on your changelogs .
13+ # Note that a GitHub Release with this tag is assumed to exist as a draft
14+ # with the appropriate title/body, and will be undrafted for you .
1515
1616name : Release
1717permissions :
@@ -269,14 +269,12 @@ jobs:
269269 - name : Create GitHub Release
270270 env :
271271 PRERELEASE_FLAG : " ${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"
272- ANNOUNCEMENT_TITLE : " ${{ fromJson(steps.host.outputs.manifest).announcement_title }}"
273- ANNOUNCEMENT_BODY : " ${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}"
274272 RELEASE_COMMIT : " ${{ github.sha }}"
275273 run : |
276- # Write and read notes from a file to avoid quoting breaking things
277- echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
274+ # If we're editing a release in place, we need to upload things ahead of time
275+ gh release upload "${{ needs.plan.outputs.tag }}" artifacts/*
278276
279- gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
277+ gh release edit "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --draft=false
280278
281279 announce :
282280 needs :
You can’t perform that action at this time.
0 commit comments