From ecef1f8b6fb7c2b64bd67abf9c561594a1d61310 Mon Sep 17 00:00:00 2001 From: Ramakrishna Prabhu Date: Tue, 27 Oct 2026 15:04:58 -0500 Subject: [PATCH 1/3] ci(java): publish the nightly SNAPSHOT to Sonatype --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a62de35e22..2e8a580926 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -148,7 +148,8 @@ jobs: # (TODO: drop java/cuopt/ci/maven-publish/ and this file once # rapidsai/shared-workflows#652 merges and ships in a branch cuOpt tracks). java-maven-publish: - if: startsWith(github.ref, 'refs/tags/v') + # Nightlies publish the SNAPSHOT (overwritten each night); release tags publish to Central. + if: startsWith(github.ref, 'refs/tags/v') || inputs.build_type == 'nightly' needs: [java-static-gather] permissions: actions: read From 02c5ead4ec831d828d891e8d63f6d32eb6ba964f Mon Sep 17 00:00:00 2001 From: Ramakrishna Prabhu Date: Tue, 27 Oct 2026 15:27:55 -0500 Subject: [PATCH 2/3] ci(java): refresh the publish job comment --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 51d777f188..e38a9c3484 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -144,9 +144,9 @@ jobs: path: ${{ runner.temp }}/maven-repo if-no-files-found: error - # Release path only (vYY.MM.PP tags). + # Release tags (vYY.MM.PP) publish to Maven Central; nightlies overwrite the SNAPSHOT in the + # Sonatype snapshot repository. java-maven-publish: - # Nightlies publish the SNAPSHOT (overwritten each night); release tags publish to Central. if: startsWith(github.ref, 'refs/tags/v') || inputs.build_type == 'nightly' needs: [java-static-gather] permissions: From 8614f8d73cdd30772fc12cf022f96ef7eff3ccda Mon Sep 17 00:00:00 2001 From: Ramakrishna Prabhu Date: Tue, 27 Oct 2026 15:40:24 -0500 Subject: [PATCH 3/3] ci(java): drop the publish job comment --- .github/workflows/build.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e38a9c3484..45f23edf29 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -144,8 +144,6 @@ jobs: path: ${{ runner.temp }}/maven-repo if-no-files-found: error - # Release tags (vYY.MM.PP) publish to Maven Central; nightlies overwrite the SNAPSHOT in the - # Sonatype snapshot repository. java-maven-publish: if: startsWith(github.ref, 'refs/tags/v') || inputs.build_type == 'nightly' needs: [java-static-gather]