File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
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 :
@@ -261,14 +261,12 @@ jobs:
261261 - name : Create GitHub Release
262262 env :
263263 PRERELEASE_FLAG : " ${{ fromJson(steps.host.outputs.manifest).announcement_is_prerelease && '--prerelease' || '' }}"
264- ANNOUNCEMENT_TITLE : " ${{ fromJson(steps.host.outputs.manifest).announcement_title }}"
265- ANNOUNCEMENT_BODY : " ${{ fromJson(steps.host.outputs.manifest).announcement_github_body }}"
266264 RELEASE_COMMIT : " ${{ github.sha }}"
267265 run : |
268- # Write and read notes from a file to avoid quoting breaking things
269- echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
266+ # If we're editing a release in place, we need to upload things ahead of time
267+ gh release upload "${{ needs.plan.outputs.tag }}" artifacts/*
270268
271- gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
269+ gh release edit "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --draft=false
272270
273271 publish-homebrew-formula :
274272 needs :
You can’t perform that action at this time.
0 commit comments