Skip to content

Commit 11ee72c

Browse files
committed
build: update release configuration
1 parent ef129cd commit 11ee72c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
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

1616
name: Release
1717
permissions:
@@ -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:

0 commit comments

Comments
 (0)