Skip to content

Fix Maven Central upload workflow - #25

Merged
fabiogouw merged 1 commit into
mainfrom
chore/jreleaser-public-key
Jul 31, 2026
Merged

Fix Maven Central upload workflow#25
fabiogouw merged 1 commit into
mainfrom
chore/jreleaser-public-key

Conversation

@fabiogouw

Copy link
Copy Markdown
Owner

Summary

This PR fixes the Maven Central upload workflow after the first run exposed an incomplete PGP signing setup.

What changed

  • added JRELEASER_GPG_PUBLIC_KEY to the release workflow because JReleaser PGP memory mode requires the public key in addition to the private key and passphrase
  • kept the Maven Central release workflow available in both modes: automatic on v* tag push and manual via workflow_dispatch with a release_tag input
  • updated the README release instructions to document the required public key secret and the manual dispatch flow
  • restricted the draw.io export workflow to branch pushes so it no longer runs when a release tag is pushed

How to use

GitHub Actions

Configure these repository secrets before running the release workflow:

  • MAVEN_CENTRAL_USERNAME
  • MAVEN_CENTRAL_PASSWORD
  • JRELEASER_GPG_PUBLIC_KEY
  • JRELEASER_GPG_SECRET_KEY
  • JRELEASER_GPG_PASSPHRASE

The workflow can be triggered in two ways:

  1. Push a tag that matches v*.
  2. Run the workflow manually and provide the release_tag input.

In both cases the workflow uploads the deployment to Maven Central in UPLOAD mode, and the final publish step must still be confirmed manually in the Central Portal.

Local run

Export the same Maven Central and JReleaser signing variables locally, plus GITHUB_TOKEN, then run:

./gradlew :spark-aws-messaging:publishToMavenCentral

If you want to force upload-only mode locally, use:

JRELEASER_MAVENCENTRAL_STAGE=UPLOAD ./gradlew :spark-aws-messaging:publishToMavenCentral

Add the missing public PGP key secret to the release workflow, support both tag and manual dispatch for Maven Central uploads, and prevent the draw.io export workflow from running on tag pushes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@fabiogouw
fabiogouw force-pushed the chore/jreleaser-public-key branch from 35573a9 to e104bdd Compare July 31, 2026 00:02
@fabiogouw
fabiogouw merged commit edf501b into main Jul 31, 2026
1 of 2 checks passed
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