Repository navigation
Add automated Maven Central release workflow - #295
Merged
Merged
Conversation
Upgrade maven-gpg-plugin to 3.2.7 with loopback pinentry for headless CI signing, add an autoPublish switch (default false) to the central publishing plugin, and publish on v* tags via a release workflow gated by the maven-central environment approval.
lzsweb
had a problem deploying
to
maven-central
November 19, 2026 05:53 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
maven-gpg-plugin1.6 → 3.2.7 with--pinentry-mode loopbackso signing works in headless CI (1.6 hangs on the pinentry prompt).autoPublishproperty (defaultfalse) wired intocentral-publishing-maven-plugin: localmvn deploystill uploads only; CI can opt into auto-publish via-DautoPublish=true..github/workflows/release.yml: onv*tags, gated by themaven-centralenvironment (required reviewers). Guards: tag commit must be onmain, pom version must match the tag, unit tests must pass. Thenmvn deployand auto-create a GitHub Release with generated notes.Test plan
mvn testlocally: 443 tests, 0 failures (3 skipped)maven-centralenvironment secrets (CENTRAL_USERNAME / CENTRAL_PASSWORD / GPG_PRIVATE_KEY / GPG_PASSPHRASE) before first tag push