Skip to content

Commit 9ba5983

Browse files
committed
build(release): create GitHub releases using gh until we have a fix for JReleaser
1 parent e9b402f commit 9ba5983

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

justfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ perform-release:
3131
export PREVIOUS_VERSION=$(yq '.release.previous-version' .github/project.yml)
3232
export RELEASE_VERSION=$(yq '.release.current-version' .github/project.yml)
3333
export NEXT_VERSION=$(yq '.release.next-version' .github/project.yml)
34-
echo "🚀 Releasing with JReleaser: ${PREVIOUS_VERSION} ➡️ ${RELEASE_VERSION} ➡️ ${NEXT_VERSION}"
34+
echo "🚀 Releasing: ${PREVIOUS_VERSION} ➡️ ${RELEASE_VERSION} ➡️ ${NEXT_VERSION}"
3535
export JRELEASER_GITHUB_TOKEN=$(gh auth token)
3636
export JRELEASER_PROJECT_VERSION=${RELEASE_VERSION}
3737
export JRELEASER_TAG_NAME=${RELEASE_VERSION}
3838
export JRELEASER_PREVIOUS_TAG_NAME=${PREVIOUS_VERSION}
3939
export JRELEASER_BRANCH="release/${RELEASE_VERSION}"
40-
./mvnw --batch-mode --no-transfer-progress -Pjreleaser jreleaser:full-release -pl :mutiny-project
41-
echo "✅ JReleaser ok, preparing post-release commits"
40+
./mvnw --batch-mode --no-transfer-progress -Pjreleaser jreleaser:changelog -pl :mutiny-project
41+
echo "✅ Release notes ok"
42+
gh release create ${RELEASE_VERSION} \
43+
--discussion-category 'Announcements' \
44+
--notes-file target/jreleaser/release/CHANGELOG.md \
45+
--target ${JRELEASER_BRANCH} \
46+
--prerelease --latest=false
47+
echo "✅ Release created"
4248
./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${NEXT_VERSION} -DgenerateBackupPoms=false
4349
./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${NEXT_VERSION} -DgenerateBackupPoms=false -pl bom
4450
git commit -am "chore(release): set development version to ${NEXT_VERSION}"
@@ -47,7 +53,7 @@ perform-release:
4753
echo "💡 If you released from main:"
4854
echo " git switch main"
4955
echo " git merge release/${RELEASE_VERSION}"
50-
echo " git push --tags"
56+
echo " git push"
5157

5258
# Clear RevAPI justifications
5359
clear-revapi:

0 commit comments

Comments
 (0)