diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fbec3f4..c68f8f96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,4 +30,4 @@ jobs: run: ./tooling/ci/build_cmd.sh ${{ matrix.build_cmd }} - name: Upload snapshot run: ./gradlew publish -PmavenCentralUsername="${{ secrets.SonatypeUsername }}" -PmavenCentralPassword="${{ secrets.SonatypePassword }}" - if: success() && github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && matrix.java_version == '11' + if: success() && github.ref == 'refs/heads/master' && github.event_name != 'pull_request' diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 00000000..16d53b5a --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,13 @@ +Releasing +========= + +1. Change the version in `buildSrc/gradle.properties` to a non-SNAPSHOT version. +2. Update the `README.md` and README-zh.md with the new version. +3. Update the `CHANGELOG.md` for the impending release. +4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) +5. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version) +6. `./gradlew clean publish --no-daemon --no-parallel && ./gradlew closeAndReleaseRepository` +7. Using github UI to create a release from a tag (https://github.com/uber/okbuck/releases/new?tag=vX.Y.Z) +8. Update the `buildSrc/gradle.properties` to the next SNAPSHOT version. +8. `git commit -am "Prepare next development version."` +9. `git push && git push --tags` \ No newline at end of file diff --git a/buildSrc/gradle.properties b/buildSrc/gradle.properties index 8196cd5f..dbe3b554 100644 --- a/buildSrc/gradle.properties +++ b/buildSrc/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.uber -VERSION_NAME=0.53.1 +VERSION_NAME=0.53.2-SNAPSHOT POM_DESCRIPTION=A Gradle plugin that lets developers utilize the Buck build system on a Gradle project POM_URL=https://github.com/uber/okbuck/ POM_SCM_URL=https://github.com/uber/okbuck/ @@ -13,4 +13,7 @@ POM_DEVELOPER_NAME=Uber Technologies SONATYPE_STAGING_PROFILE=com.uber POM_NAME=okbuck POM_ARTIFACT_ID=okbuck -POM_PACKAGING=jar \ No newline at end of file +POM_PACKAGING=jar + +SONATYPE_HOST=DEFAULT +RELEASE_SIGNING_ENABLED=true