Skip to content

Update the release flow to take the version as a parameter, and pass it to JReleaser#13

Merged
oleg-nenashev merged 2 commits into
mainfrom
jreleaser-flow-fix
Apr 23, 2023
Merged

Update the release flow to take the version as a parameter, and pass it to JReleaser#13
oleg-nenashev merged 2 commits into
mainfrom
jreleaser-flow-fix

Conversation

@oleg-nenashev
Copy link
Copy Markdown
Member

As mentioned by @aalmiray in https://twitter.com/aalmiray/status/1648414396278816775, the configuration was broken, and JReleaser actually failed for the previous version. This patch should help

@oleg-nenashev oleg-nenashev added the chore Maintenance label Apr 23, 2023
Comment thread .github/workflows/release.yml Outdated
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
mvn versions:set -DnewVersion=${{ github.event.inputs.version }}-SNAPSHOT
git commit -m "Releasing version ${{ github.event.inputs.version }}" pom.xml
git push origin main
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should not be called explicitly, Maven Release Plugin will do the push anyway


# Create a release
# Create a GitHub Release
# TODO (oleg-nenashev): Consider switching to Release Drafter if there is not significant value except fancy changelog
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW release-drafter works with issues/PRs while JReleaser works with commit messages (though it can also invoke GiHub's "native" release notes generator, which also only works with issues/PRs).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. Both approaches have their pros and cons, though I got more used to the PR-based approach. I wanted to try out JReleaser on something in any case, at least until we have unified labeling policy and changelog format in the organization, similar to https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.yml

@oleg-nenashev
Copy link
Copy Markdown
Member Author

A bit of YOLO, but let's see how it works with the next release

@oleg-nenashev oleg-nenashev merged commit f8a5f60 into main Apr 23, 2023
@oleg-nenashev oleg-nenashev deleted the jreleaser-flow-fix branch April 23, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants