Skip to content

Commit

Permalink
Remove java_11 condition for uploading snapshot (uber#974)
Browse files Browse the repository at this point in the history
Add releasing doc
  • Loading branch information
hvvikram authored and vicmns committed May 31, 2023
1 parent d716946 commit 3a12c3b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
13 changes: 13 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -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`
7 changes: 5 additions & 2 deletions buildSrc/gradle.properties
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -13,4 +13,7 @@ POM_DEVELOPER_NAME=Uber Technologies
SONATYPE_STAGING_PROFILE=com.uber
POM_NAME=okbuck
POM_ARTIFACT_ID=okbuck
POM_PACKAGING=jar
POM_PACKAGING=jar

SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true

0 comments on commit 3a12c3b

Please sign in to comment.