Skip to content

Commit 5763130

Browse files
authored
Remove java_11 condition for uploading snapshot (#974)
Add releasing doc
1 parent 815b968 commit 5763130

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
run: ./tooling/ci/build_cmd.sh ${{ matrix.build_cmd }}
2929
- name: Upload snapshot
3030
run: ./gradlew publish -PmavenCentralUsername="${{ secrets.SonatypeUsername }}" -PmavenCentralPassword="${{ secrets.SonatypePassword }}"
31-
if: success() && github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && matrix.java_version == '11'
31+
if: success() && github.ref == 'refs/heads/master' && github.event_name != 'pull_request'

RELEASING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Releasing
2+
=========
3+
4+
1. Change the version in `buildSrc/gradle.properties` to a non-SNAPSHOT version.
5+
2. Update the `README.md` and README-zh.md with the new version.
6+
3. Update the `CHANGELOG.md` for the impending release.
7+
4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
8+
5. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version)
9+
6. `./gradlew clean publish --no-daemon --no-parallel && ./gradlew closeAndReleaseRepository`
10+
7. Using github UI to create a release from a tag (https://github.com/uber/okbuck/releases/new?tag=vX.Y.Z)
11+
8. Update the `buildSrc/gradle.properties` to the next SNAPSHOT version.
12+
8. `git commit -am "Prepare next development version."`
13+
9. `git push && git push --tags`

buildSrc/gradle.properties

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.uber
2-
VERSION_NAME=0.53.1
2+
VERSION_NAME=0.53.2-SNAPSHOT
33
POM_DESCRIPTION=A Gradle plugin that lets developers utilize the Buck build system on a Gradle project
44
POM_URL=https://github.com/uber/okbuck/
55
POM_SCM_URL=https://github.com/uber/okbuck/
@@ -13,4 +13,7 @@ POM_DEVELOPER_NAME=Uber Technologies
1313
SONATYPE_STAGING_PROFILE=com.uber
1414
POM_NAME=okbuck
1515
POM_ARTIFACT_ID=okbuck
16-
POM_PACKAGING=jar
16+
POM_PACKAGING=jar
17+
18+
SONATYPE_HOST=DEFAULT
19+
RELEASE_SIGNING_ENABLED=true

0 commit comments

Comments
 (0)