Skip to content

Commit c624565

Browse files
committed
Document GitHub release helper command
1 parent 76ace84 commit c624565

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ The test uploads `chameleon.jpg`, resizes it, and asserts on a real assembly res
8383
```bash
8484
GEM_HOST_API_KEY=... ./scripts/notify-registry.sh
8585
```
86-
6. Draft a GitHub release from the new tag and publish the generated notes.
86+
6. Publish the GitHub release notes:
87+
```bash
88+
gh release create vX.Y.Z --title "vX.Y.Z" --notes "$(ruby -e 'puts File.read("CHANGELOG.md")[/^### #{ARGV[0].dump.gsub(/\"/, "\\\"")}/, /\A### /m] || "")'"
89+
```
90+
Adjust the notes if needed before publishing.
8791
8892
### RubyGems Credentials
8993
@@ -92,4 +96,3 @@ The test uploads `chameleon.jpg`, resizes it, and asserts on a real assembly res
9296
- Export the token as `GEM_HOST_API_KEY` in your environment before running `./scripts/notify-registry.sh`. The script refuses to run if the variable is missing.
9397
9498
That’s it! Thank you for contributing.
95-

0 commit comments

Comments
 (0)