Skip to content

ci: Publish to Maven Central workflow; java/PUBLISHING.md - #48

Merged
singhpratech merged 1 commit into
mainfrom
ci/publish-maven
Sep 4, 2026
Merged

ci: Publish to Maven Central workflow; java/PUBLISHING.md#48
singhpratech merged 1 commit into
mainfrom
ci/publish-maven

Conversation

@singhpratech

Copy link
Copy Markdown
Owner

Adds .github/workflows/publish-maven.yml: dispatched with a release tag, it checks the POM version against the tag, fetches the four native libraries from that release's assets (the Release workflow's recipe), builds the jar with them, signs everything with the GPG key from the repository secrets and uploads the bundle through central-publishing-maven-plugin. By default the deployment is validated and left staged on the Central Portal for a human to publish or drop; the publish input releases automatically. The POM's hardcoded autoPublish becomes the property central.autoPublish (default false) so the input can drive it.

java/PUBLISHING.md records the one-time setup (namespace verification, user token, signing key, the maven-central environment) and the per-release steps; java/README.md points at it.

Needs, before the first run: secrets CENTRAL_USERNAME, CENTRAL_PASSWORD, GPG_PRIVATE_KEY, GPG_PASSPHRASE; the maven-central environment; the org.adbcbridge namespace verified.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YG6wFApZpg2xe61EmKhaSZ

…release's natives, sign, stage on the Central Portal); java/PUBLISHING.md

The release profile's autoPublish becomes the property central.autoPublish
(default false) so the workflow's input can choose between staging the
deployment for review and releasing on validation.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YG6wFApZpg2xe61EmKhaSZ
@singhpratech
singhpratech merged commit 947b66e into main Sep 4, 2026
4 checks passed
@singhpratech
singhpratech deleted the ci/publish-maven branch September 4, 2026 21:28
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.

1 participant