Skip to content

Commit

Permalink
Merge pull request #1723 from smallrye/docs/releasing
Browse files Browse the repository at this point in the history
Minor JReleaser tweaks and documentation
  • Loading branch information
jponge authored Oct 24, 2024
2 parents 446310d + 5ae81bc commit 9fe309f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Releasing Mutiny

## Prepare a release pull-request

1. Make sure that all issues and pull-requests assigned to the target milestone have been closed.
2. Run: `just prepare-release 2.7.0-RC3` (replace with the correct version number).
3. Review the changes in the branch.
4. Open a pull-request: `gh pr create`.
5. Once all tests pass, merge it:
- the `pre-release.yml` workflow will create a Git tag, then
- the `release.yml` workflow will push to Maven Central, then
- the `deploy-site.yml` workflow will update the website (except for release candidates and milestones).

## GitHub release notes

Run the following command: `just jreleaser 2.6.2 2.7.0-RC3` where you specify the previous and the release tags to compute release notes.

If the release notes fail to update or if they are too big for JReleaser to update them, then you can read them from `target/jreleaser/release/CHANGELOG.md` and manually update the release notes on GitHub.
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ prepare-release version:
# Use JReleaser to generate a changelog and announce a release
jreleaser previousReleaseTag releaseTag:
#!/usr/bin/env bash
echo "🚀 Use JReleaser"
echo "🚀 Use JReleaser for the release of {{previousReleaseTag}} to {{releaseTag}}"
export CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
export JRELEASER_GITHUB_TOKEN=$(gh auth token)
export JRELEASER_PROJECT_VERSION={{releaseTag}}
export JRELEASER_TAG_NAME={{releaseTag}}
export JRELEASER_PREVIOUS_TAG_NAME={{previousReleaseTag}}
echo "💡 Checking out tag {{releaseTag}}"
git checkout {{releaseTag}}
./mvnw --batch-mode --no-transfer-progress -Pjreleaser jreleaser:full-release -pl :mutiny-project
echo "💡 Back to branch ${CURRENT_BRANCH}"
git checkout ${CURRENT_BRANCH}
echo "✅ JReleaser completed"
# Clear RevAPI justifications
clear-revapi:
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@
<github>
<owner>smallrye</owner>
<name>smallrye-mutiny</name>
<enabled>true</enabled>
<overwrite>true</overwrite>
<skipTag>true</skipTag>
<changelog>
Expand Down

0 comments on commit 9fe309f

Please sign in to comment.