Repository navigation
Publish to GitHub Packages, tag, then upload to Maven Central - #3
Merged
Merged
Conversation
venkata-kishore
added a commit
to BonfireTrunk/oss-parent
that referenced
this pull request
Oct 29, 2026
Releases bonfire-oss-parent 2.1.1. - `pom.xml`: version `2.1.1-SNAPSHOT` becomes `2.1.1`. - `CHANGELOG.md` gets a `## [2.1.1] - 2026-10-29` section: releases also go to GitHub Packages, only the required checksums go to Maven Central, and the `publish` profile waits only for validation. - The README's parent snippet shows 2.1.1. **Merge after BonfireTrunk/.github#3.** Merging this PR starts the release with whatever `maven-release.yml` is on `prime` of BonfireTrunk/.github at that moment. With #3 merged, the run builds and signs once, publishes to GitHub Packages, creates tag `v2.1.1` with its GitHub release, then uploads the bundle to Maven Central and stops once Central has validated it. This is the first release through that pipeline. This is the third of Maven Central's 7 releases for October. Checked locally: `CI=true ./mvnw -B -ntp verify` passes, the version evaluates to `2.1.1`, and the workflow's CHANGELOG extraction returns the new section.
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.
Changes the release order to:
vX.Y.Zand its GitHub release;Until now Central came first, then GitHub Packages, and the tag last. With the new order, a release that Central delays or rejects, for example once the organization is over Central's monthly publishing limits, is still tagged, released on GitHub and available from GitHub Packages. Central catches up later.
How
verify,deploy:deployto GitHub Packages, andcentral-publishing-maven-plugin:publish -DskipUpload=true. That last goal only builds Central's bundle from the same signed files. Maven stops at the first failure, so a failed GitHub upload ends the release before any tag or Central step.gh release create, as before.POST /api/v1/publisher/upload?publishingType=AUTOMATIC). It then polls/api/v1/publisher/statusevery 10 seconds:VALIDATED,PUBLISHINGorPUBLISHED. Central finishes copying to repo1 on its own, so no runner sits waiting for that.FAILEDand prints Central'serrors. It also fails if Central refuses the upload, printing the response, or if nothing is validated within an hour.-DwaitMaxTimeis gone because Maven no longer uploads to Central.Re-runs
vX.Y.Z. Manual runs onrefs/tags/v*are now allowed, and the tag must match the pom version.Checked
-DskipUpload=truethe bundle lands attarget/central-publishing/central-bundle.zip, the path the upload step reads.FAILED: Central's errors are printed and the job fails.bundlemultipart field,publishingType=AUTOMATICandname=<artifact> <version>.Untested: a real upload to Central. It happens for the first time on the next release. If it fails, the tag and the GitHub Packages copy already exist, so it is fixed by correcting the workflow and re-running the failed job.