From 7079f2ddb2571e499bed05dc5910216c9997ebf6 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:02:10 +0200 Subject: [PATCH 1/7] Fix java version for release build --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1defa9..a0d3614 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,10 @@ jobs: - uses: actions/setup-java@v5 with: distribution: "temurin" - java-version: 11 + # Java 17 required by Gradle + java-version: | + 11 + 17 - name: Setup Gradle uses: gradle/actions/setup-gradle@v6 From 9bc5f1707399dfe8f711a01e55d5406482c02320 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:02:51 +0200 Subject: [PATCH 2/7] Allow debugging release buidl --- .github/workflows/release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0d3614..75acf0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,12 +24,12 @@ jobs: - name: Checkout uses: actions/checkout@v6 - - name: Fail if not running on main branch - if: ${{ github.ref != 'refs/heads/main' }} - uses: actions/github-script@v9 - with: - script: | - core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + #- name: Fail if not running on main branch + # if: ${{ github.ref != 'refs/heads/main' }} + # uses: actions/github-script@v9 + # with: + # script: | + # core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') - uses: actions/setup-java@v5 with: @@ -47,7 +47,8 @@ jobs: - name: Publish to Maven Central if: ${{ !inputs.skip-deploy-maven-central }} - run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info + run: ./gradlew publishToSonatype closeSonatypeStagingRepository --warning-mode all --info + #run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }} From 7661f492247c4d39dd2fd089fb8b0823089e4417 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:10:08 +0200 Subject: [PATCH 3/7] Fix publishing URL --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8964cc9..c1e37d7 100644 --- a/build.gradle +++ b/build.gradle @@ -116,7 +116,7 @@ nexusPublishing { packageGroup = project.group repositories { sonatype { - stagingProfileId = "546ea6ce74787e" + nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/") } } } From 283b475eaf45497124fe3fe2439e3351bfe0ad00 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:20:30 +0200 Subject: [PATCH 4/7] Archive build reports for debugging Co-authored-by: Copilot --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75acf0e..9b358b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,14 +47,21 @@ jobs: - name: Publish to Maven Central if: ${{ !inputs.skip-deploy-maven-central }} - run: ./gradlew publishToSonatype closeSonatypeStagingRepository --warning-mode all --info - #run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info + run: ./gradlew publishToSonatype closeSonatypeStagingRepository --warning-mode all --info --no-configuration-cache + #run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info --no-configuration-cache env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + - name: Archive build reports + if: always() + uses: actions/upload-artifact@v4 + with: + name: build-reports + path: build/reports/ + - name: Create GitHub Release run: ./.github/workflows/github_release.sh env: From f8176df38fd5e86692fcb4abb699a0c42a9e7126 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:21:43 +0200 Subject: [PATCH 5/7] Fix java order --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b358b2..d2808aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,8 @@ jobs: distribution: "temurin" # Java 17 required by Gradle java-version: | - 11 17 + 11 - name: Setup Gradle uses: gradle/actions/setup-gradle@v6 From 28f3d8a601534ed43474bc87c513957e0fc02136 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:22:50 +0200 Subject: [PATCH 6/7] Fix java order --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2808aa..d1aa0b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,8 @@ jobs: distribution: "temurin" # Java 17 required by Gradle java-version: | - 17 11 + 17 - name: Setup Gradle uses: gradle/actions/setup-gradle@v6 @@ -62,7 +62,7 @@ jobs: name: build-reports path: build/reports/ - - name: Create GitHub Release - run: ./.github/workflows/github_release.sh - env: - GH_TOKEN: ${{ github.token }} + #- name: Create GitHub Release + # run: ./.github/workflows/github_release.sh + # env: + # GH_TOKEN: ${{ github.token }} From 4bd108b6b949593486a0bc266510f28877d83c31 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 3 May 2026 14:24:37 +0200 Subject: [PATCH 7/7] Restore release build script --- .github/workflows/release.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1aa0b5..ae9e58e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,12 +24,12 @@ jobs: - name: Checkout uses: actions/checkout@v6 - #- name: Fail if not running on main branch - # if: ${{ github.ref != 'refs/heads/main' }} - # uses: actions/github-script@v9 - # with: - # script: | - # core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') + - name: Fail if not running on main branch + if: ${{ github.ref != 'refs/heads/main' }} + uses: actions/github-script@v9 + with: + script: | + core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main') - uses: actions/setup-java@v5 with: @@ -47,8 +47,7 @@ jobs: - name: Publish to Maven Central if: ${{ !inputs.skip-deploy-maven-central }} - run: ./gradlew publishToSonatype closeSonatypeStagingRepository --warning-mode all --info --no-configuration-cache - #run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info --no-configuration-cache + run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --warning-mode all --info --no-configuration-cache env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }} @@ -62,7 +61,7 @@ jobs: name: build-reports path: build/reports/ - #- name: Create GitHub Release - # run: ./.github/workflows/github_release.sh - # env: - # GH_TOKEN: ${{ github.token }} + - name: Create GitHub Release + run: ./.github/workflows/github_release.sh + env: + GH_TOKEN: ${{ github.token }}