Skip to content

Commit 69b0a07

Browse files
committed
dist init, generate, update cargo locks
1 parent 5491c53 commit 69b0a07

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
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:
@@ -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:

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)