Skip to content

feat: automate Maven Central releases with GitHub Actions (#29) - #46

Open
BHARGAV-RUE wants to merge 1 commit into
MSaifAsif:masterfrom
BHARGAV-RUE:feature/automate-maven-central-release-29
Open

feat: automate Maven Central releases with GitHub Actions (#29)#46
BHARGAV-RUE wants to merge 1 commit into
MSaifAsif:masterfrom
BHARGAV-RUE:feature/automate-maven-central-release-29

Conversation

@BHARGAV-RUE

Copy link
Copy Markdown

Issue

Closes #29

What's Changed

  • Added .github/workflows/release.yml for automated Maven Central releases
  • Workflow triggers on version tags (v*)
  • Includes GPG signing, OSSRH upload, and GitHub Release creation
  • Uses softprops/action-gh-release@v1 for auto-generated release notes (fixed deprecated actions/create-release)

Setup Required

Maintainers need to configure 4 GitHub Secrets:

  • GPG_PRIVATE_KEY — GPG private key (ASCII-armored)
  • GPG_PASSPHRASE — GPG key passphrase
  • OSSRH_USERNAME — Sonatype account email/ID
  • OSSRH_PASSWORD — Sonatype auth token

Testing

✅ Verified workflow YAML syntax
✅ Verified release-sign-artifacts profile exists in pom.xml
✅ Verified nexus-staging-maven-plugin configuration
✅ Verified pom.xml has correct Maven Central coordinates

How to Use (Example only)

git tag v1.1.0
git push origin v1.1.0

@MSaifAsif MSaifAsif self-assigned this Jul 3, 2026
@MSaifAsif MSaifAsif added the ci/cd CI/CD pipeline label Jul 3, 2026
@MSaifAsif
MSaifAsif self-requested a review July 16, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI/CD pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GitHub Actions workflow for automated Maven Central releases

2 participants