Publish Your First Artifact to Maven Central Using GitHub Actions

A step-by-step guide to the process of publishing artifacts in Maven Central

Photo by Ferenc Almasi on Unsplash

Overall Process

1. Create a project and request access to maven central.

2. Signing Artifacts / GPG setup

3. Adding metadata to the POM

4. Generate JavaDoc and sources jar.

5. Prepare POM for deployment

6. Automate deployment to staging and release using GitHub Actions

7. Enable synchronization after first release.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anurag Ashok

building software @ Singapore Airlines | making code work for 8+ years | passionate about automation and “everything as code”.