Release automation overhaul: Sonatype Nexus, Shipkit and GH Actions#52
Merged
wmoustafa merged 2 commits intolinkedin:masterfrom Mar 22, 2021
Merged
Release automation overhaul: Sonatype Nexus, Shipkit and GH Actions#52wmoustafa merged 2 commits intolinkedin:masterfrom
wmoustafa merged 2 commits intolinkedin:masterfrom
Conversation
Implemented migrations: - Bintray -> Sonatype Nexus - Travis -> GH Actions - Shipkit 2.0 -> Shipkit 3.0 (new plugins) Benefits: - enables concurrent releases - migrates off discontinued tech - eliminates version bump commits
Contributor
Author
|
@wmoustafa, merging this needs some work on your end (exporting secrets to GH Actions, verifying e2e releases with Maven Central). I added details to PR description and I hope they are useful! |
wmoustafa
approved these changes
Mar 22, 2021
Contributor
|
Thanks @mockitoguy! This looks good. I think it is similar to the approach in #51, but uses the new Shipkit plugins and Github Actions. I have setup the secrets. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_USERandSONATYPE_PWDsecrets. Official guide on publishing to Sonatype Nexus: https://central.sonatype.org/pages/ossrh-guide.htmlPGP_KEYandPGP_PWDsecrets. 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