diff --git a/RELEASING.md b/RELEASING.md index 28b35de..b64ae49 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -18,16 +18,17 @@ We currently deploy to Maven Central (via Sonatype's OSS Nexus instance). 1. Add your GPG key to your github profile - this is required for github to know that your commits and tags are "verified". -1. Configure your code-signing key in ~/.gradle.properties: +1. Configure your code-signing key in ~/.gradle/gradle.properties: ```gradle signing.keyId= signing.password= signing.secretKeyRingFile=/path/to/your/secring.gpg ``` -1. Configure your Sonatype credentials in ~/.gradle.properties: +1. Configure your Sonatype credentials in ~/.gradle/gradle.properties: ```gradle SONATYPE_NEXUS_USERNAME= SONATYPE_NEXUS_PASSWORD= + SONATYPE_STAGING_PROFILE=com.getkeepsafe ``` 1. Configure git with your codesigning key; make sure it's the same as the one you use to sign binaries (i.e. it's the same one you added to gradle.properties): @@ -54,17 +55,17 @@ We currently deploy to Maven Central (via Sonatype's OSS Nexus instance). ```bash git tag -s -a X.Y.Z ``` -1. Upload binaries to Sonatype: +1. Upload binaries to Staging: ```bash ./gradlew publish ``` -1. Go to [Sonatype](https://oss.sonatype.org/), log in with your credentials -1. Click "Staging Repositories" -1. Find the "comgetkeepsafe" repo, usually at the bottom of the list -1. "Close" the repository (select it then click the "close" button up top), the text field doesn't matter so put whatever you want in it -1. Wait until that's done -1. "Release" the repository, leave the checkbox checked. Hooray, we're in Maven Central now! -1. Push all of our work to Github to make it official. Check previous [releases](https://github.com/KeepSafe/TapTargetView/releases) and edit tag release changes: +1. Publish to Release: + ```bash + ./gradlew closeAndReleaseRepository + ``` +1. Wait until that's done. It takes a while to publish and be available in [MavenCentral](https://repo.maven.apache.org/maven2/com/getkeepsafe/). Monitor until the latest published version is visible. +1. Hooray, we're in Maven Central now! +1. Push all of our work to Github to make it official. Check previous [releases](https://github.com/KeepSafe/Cashier/releases) and edit tag release changes: ```bash git push --tags origin master ```