Releases are published to GitHub and Maven Central by JReleaser from a version tag.
- Push access to the
codejive/java-propertiesrepository. - A Maven Central publisher account and namespace for
org.codejive. - An armored GPG key configured in the repository's
jreleaserenvironment:GPG_PUBLIC_KEY,GPG_SECRET_KEY, andGPG_PASSPHRASE. - The
MAVENCENTRAL_USERNAMEandMAVENCENTRAL_PASSWORDsecrets. - The workflow-provided
GITHUB_TOKENpermission to create releases.
- Open github.com/codejive/java-properties/actions.
- Select Release in the workflow list.
- Click Run workflow.
- Leave the branch set to
mainand enter the release version without a leadingv, for example0.0.8. - Click Run workflow to start the release.
- Open the newly created workflow run and wait for the
releasejob to complete. - Open github.com/codejive/java-properties/releases and verify the new GitHub release and its generated changelog.
- Verify that the component has been published to Maven Central.
The workflow uses the jreleaser environment, so GitHub may pause the job until
any required environment approval is granted.
-
Ensure the changes are committed and the CI workflow is green.
-
Create and push an annotated tag whose name is the release version, for example:
git tag -a v0.0.8 -m "Release v0.0.8" git push origin v0.0.8 -
The
Releaseworkflow sets the Maven version from the tag, builds the sources and Javadoc artifacts, and runs JReleaser. -
Verify the GitHub release and the published component on Maven Central.
This validates the JReleaser configuration without publishing anything:
./mvnw jreleaser:config
To build the artifacts that a release would stage locally:
./mvnw -B -Prelease clean package
Publishing should be performed by the GitHub Actions workflow so that credentials and signing keys remain outside the local environment.
If a workflow fails, open its run in Actions, inspect the failed step, correct the underlying issue, and use Re-run failed jobs. If the release must be corrected after publication, fix the source, choose a new patch version, and run the workflow again from GitHub.com.