Release automation overhaul: Sonatype Nexus, Shipkit and GH Actions #52
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.
This change is backwards compatible, please review!
Implemented migrations:
Tested by:
./gradlew build
- builds, runs tests./gradlew publish
- publishes torootDir/build/repo
, artifacts look good./gradlew githubRelease
- release correctly published to https://github.com/mockitoguy/coral/releases/tag/v1.0.28./gradlew publishToSonatype
- archives correctly published to staging repo on SonatypePost-merge actions:
For releases from CI to work, maintainers need to export GitHub secrets so that they are available in GH Actions:
SONATYPE_USER
andSONATYPE_PWD
secrets. Official guide on publishing to Sonatype Nexus: https://central.sonatype.org/pages/ossrh-guide.htmlPGP_KEY
andPGP_PWD
secrets. Here's a somewhat useful guide: https://medium.com/@nmauti/sign-and-publish-on-maven-central-a-project-with-the-new-maven-publish-gradle-plugin-22a72a4bfd4b Hint: once you generate the PGP key, here's how you can view it:gpg --export-secret-keys -a KEY_ID