1*65c59e02SInna Palant## Release Procedure (Semi-Automated) 2*65c59e02SInna Palant 3*65c59e02SInna Palant1. Bump the `VERSION_NAME` in `gradle.properties`. 4*65c59e02SInna Palant2. `hg commit -m 'vx.y.z'`, submit, land. 5*65c59e02SInna Palant3. Create a new release on the [Github release page](https://github.com/facebookincubator/fbjni/releases). This triggers a [release action](https://github.com/facebookincubator/fbjni/actions/workflows/release.yml). 6*65c59e02SInna Palant4. Bump the `VERSION_NAME` to the next patch release and appending `-SNAPSHOT`, commit, land. 7*65c59e02SInna Palant 8*65c59e02SInna Palant## Release Procedure (Manual) 9*65c59e02SInna Palant 10*65c59e02SInna PalantIn your `~/.gradle/gradle.properties`, set: 11*65c59e02SInna Palant - `SONATYPE_NEXUS_USERNAME`, `SONATYPE_NEXUS_PASSWORD` (you can find these on https://oss.sonatype.org/#profile;User%20Token) 12*65c59e02SInna Palant - `signing.secretKeyRingFile` (to your secring.gpg) 13*65c59e02SInna Palant - `signing.keyId` (Check `gpg --list-secret-keys`) 14*65c59e02SInna Palant - `signing.password` 15*65c59e02SInna Palant 16*65c59e02SInna Palant1. Bump the `VERSION_NAME` in `gradle.properties`. 17*65c59e02SInna Palant2. `hg commit -m 'vx.y.z'`, submit, land. 18*65c59e02SInna Palant3. From the checked out GitHub repository, run `./gradlew assembleRelease uploadArtifacts` (Android uploads). 19*65c59e02SInna Palant4. From the checked out GitHub repository, run `./gradlew -b host.gradle assemble uploadArtifacts` (Java-only uploads). 20*65c59e02SInna Palant5. Bump the `VERSION_NAME` to the next patch release and appending `-SNAPSHOT`, commit, land. 21*65c59e02SInna Palant6. Tag the release on the [Github release page](https://github.com/facebookincubator/fbjni/releases). 22