Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add release workflow and config #5209

Merged
merged 13 commits into from May 18, 2023
Merged

feat: Add release workflow and config #5209

merged 13 commits into from May 18, 2023

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented May 13, 2023

This is a jreleaser workflow we already use for maven lockfile. The secrets are set, see
image
There workflow itself is pretty easy. You have a dropdown menu and decide if you want a patch/minor/major release. JReleaser updates the version and does the release to maven-central and github. If you want some extra feature have a look at https://jreleaser.org/guide/latest/reference/index.html. There are a lot of possibilities.

Created `.github/workflows/jreleaser.yml` to trigger the next release version. The workflow dispatches on user input for `major`, `minor`, and `patch` versions by setting up the environment using JDK 11, Go, and `semver`. Configuration files such as `.gitignore` and `jreleaser.yml` were also updated to ignore specific files and to set the `MIT` license.
Copy link
Collaborator

@monperrus monperrus left a comment

Choose a reason for hiding this comment

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

thanks a lot

@MartinWitt MartinWitt changed the title 🎉 Add release workflow and config feat: Add release workflow and config May 15, 2023
@MartinWitt
Copy link
Collaborator Author

@I-Al-Istannen had the brilliant idea to make the release commit on a new branch and if the tests etc. succeed we fast-forward this branch to master. This guards as against failures of tests during the release process.

.github/workflows/jreleaser.yml Outdated Show resolved Hide resolved
.github/workflows/jreleaser.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
jreleaser.yml Outdated Show resolved Hide resolved
jreleaser.yml Show resolved Hide resolved
jreleaser.yml Outdated Show resolved Hide resolved
jreleaser.yml Outdated Show resolved Hide resolved
@monperrus monperrus merged commit 2feeaac into master May 18, 2023
11 checks passed
@monperrus monperrus deleted the feat/Jreleaser branch May 18, 2023 05:15
@monperrus
Copy link
Collaborator

thanks a lot @MartinWitt , we'll try the workflow together next week.

@MartinWitt MartinWitt mentioned this pull request Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants