From d21b278e075ffa81f52c592607974c5f3de316b2 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Sun, 11 Oct 2026 09:28:36 -0700 Subject: [PATCH 1/4] update release secret names --- .github/workflows/release.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ae12b09..e034b268 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,6 +130,8 @@ jobs: - build-with-docker - build + if: github.repository == 'uber/h3-java' + steps: - name: Check out code uses: actions/checkout@v6 @@ -191,23 +193,34 @@ jobs: unzip -l "$f" done - - name: Publish to Sonatype OSSRH (Maven Central) + - name: Extract release notes + run: | + awk -v ver="$RELEASE_VERSION" ' + /^## / { if (found) exit; if (index($0, "## [" ver "]") == 1) { found=1; next } } + found + ' CHANGELOG.md > extracted_release_notes.md + if [ ! -s extracted_release_notes.md ]; then + echo "Failed to extract release notes from CHANGELOG.md" + exit 1 + fi + + - name: Publish to Sonatype (Maven Central) env: - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} - ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} - ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} - # OSSRH_STAGING_PROFILE_ID: ${{ secrets.OSSRH_STAGING_PROFILE_ID }} + ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: 'true' + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USER_TOKEN_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_USER_TOKEN_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.PGP_PRIVATE_KEY_ID }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.PGP_SIGNING_KEY_PRIVATE_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.PGP_SIGNING_KEY_PASSWORD }} run: ./gradlew publishAndReleaseToMavenCentral -Ph3GithubArtifactsUse=true -Ph3GithubArtifactsByRun=true - - name: Create GitHub Release (with changelog notes) + - name: Create GitHub Release # This uses an action to create a release on GitHub - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 with: tag_name: "v${{ env.RELEASE_VERSION }}" name: "${{ env.RELEASE_VERSION }}" - body_path: CHANGELOG.md # assumes changelog contains latest release notes at top + body_path: extracted_release_notes.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From be9526ddb410595696da6ea3bd4041f02518b7d1 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Sun, 11 Oct 2026 09:37:49 -0700 Subject: [PATCH 2/4] move extract step --- .github/workflows/release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e034b268..67e09d21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -154,6 +154,17 @@ jobs: fi echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV + - name: Extract release notes + run: | + awk -v ver="$RELEASE_VERSION" ' + /^## / { if (found) exit; if (index($0, "## [" ver "]") == 1) { found=1; next } } + found + ' CHANGELOG.md > release_notes.md + if [ ! -s release_notes.md ]; then + echo "Failed to extract release notes from CHANGELOG.md" + exit 1 + fi + - name: Remove -SNAPSHOT suffix (prepare release version) if: ${{ github.event_name == 'workflow_dispatch' }} run: | @@ -193,17 +204,6 @@ jobs: unzip -l "$f" done - - name: Extract release notes - run: | - awk -v ver="$RELEASE_VERSION" ' - /^## / { if (found) exit; if (index($0, "## [" ver "]") == 1) { found=1; next } } - found - ' CHANGELOG.md > extracted_release_notes.md - if [ ! -s extracted_release_notes.md ]; then - echo "Failed to extract release notes from CHANGELOG.md" - exit 1 - fi - - name: Publish to Sonatype (Maven Central) env: ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: 'true' @@ -216,11 +216,11 @@ jobs: - name: Create GitHub Release # This uses an action to create a release on GitHub - uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 + uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 with: tag_name: "v${{ env.RELEASE_VERSION }}" name: "${{ env.RELEASE_VERSION }}" - body_path: extracted_release_notes.md + body_path: release_notes.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 1c597833a5ac13c7248c8a6ecc90e2e1b36c74e3 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Wed, 14 Oct 2026 10:28:54 -0700 Subject: [PATCH 3/4] update version number, changelog --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- gradle.properties | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 374159dc..4b294dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ for the Linux x64 and Darwin x64 platforms. ## Unreleased Changes +## [4.5.1] - 2026-10-14 +### Changed +- Releases are signed with a new key, and the release process was updated. (#216) + ## [4.5.0] - 2026-08-14 ### Added - `reverseDirectedEdge` function. (#207) diff --git a/README.md b/README.md index 5fc9d870..1b420c49 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ Add it to your pom.xml: com.uber h3 - 4.5.0 + 4.5.1 ``` Or, using Gradle: ```gradle -compile("com.uber:h3:4.5.0") +compile("com.uber:h3:4.5.1") ``` Encode a location into a hexagon address: diff --git a/gradle.properties b/gradle.properties index fa804737..660cdc43 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.configuration-cache=false # No spaces on the following line, needed by release.yml: -version=4.5.1-SNAPSHOT +version=4.5.1 From 2e29e0951ac3b0a9c5716369cc6c4d1b2cdf97b3 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Thu, 15 Oct 2026 08:04:31 -0700 Subject: [PATCH 4/4] release date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b294dbf..2e336eea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ for the Linux x64 and Darwin x64 platforms. ## Unreleased Changes -## [4.5.1] - 2026-10-14 +## [4.5.1] - 2026-10-15 ### Changed - Releases are signed with a new key, and the release process was updated. (#216)