|
1 |
| -## Release Procedure |
| 1 | +## Release Procedure (Semi-Automated) |
2 | 2 |
|
3 |
| -In your `~/.gradle/gradle.properties`, set `bintrayUsername` and `bintrayApiKey` values |
4 |
| -you can find in your [Bintray profile](https://bintray.com/profile/edit). |
| 3 | +1. Bump the `VERSION_NAME` in `gradle.properties`. |
| 4 | +2. `hg commit -m 'vx.y.z'`, submit, land. |
| 5 | +3. 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 | +4. Bump the `VERSION_NAME` to the next patch release and appending `-SNAPSHOT`, commit, land. |
| 7 | + |
| 8 | +## Release Procedure (Manual) |
| 9 | + |
| 10 | +In your `~/.gradle/gradle.properties`, set: |
| 11 | + - `SONATYPE_NEXUS_USERNAME`, `SONATYPE_NEXUS_PASSWORD` (you can find these on https://oss.sonatype.org/#profile;User%20Token) |
| 12 | + - `signing.secretKeyRingFile` (to your secring.gpg) |
| 13 | + - `signing.keyId` (Check `gpg --list-secret-keys`) |
| 14 | + - `signing.password` |
5 | 15 |
|
6 | 16 | 1. Bump the `VERSION_NAME` in `gradle.properties`.
|
7 | 17 | 2. `hg commit -m 'vx.y.z'`, submit, land.
|
8 |
| -3. From the checked out GitHub repository, run `./gradlew bintrayUpload` (Android uploads). |
9 |
| -4. From the checked out GitHub repository, run `./gradlew -b host.gradle bintrayUpload` (Java-only uploads). |
| 18 | +3. From the checked out GitHub repository, run `./gradlew assembleRelease uploadArtifacts` (Android uploads). |
| 19 | +4. From the checked out GitHub repository, run `./gradlew -b host.gradle assemble uploadArtifacts` (Java-only uploads). |
10 | 20 | 5. Bump the `VERSION_NAME` to the next patch release and appending `-SNAPSHOT`, commit, land.
|
11 | 21 | 6. Tag the release on the [Github release page](https://github.com/facebookincubator/fbjni/releases).
|
0 commit comments