From 2c585d1129ecf4973a80ac52a2c258724dd79d62 Mon Sep 17 00:00:00 2001 From: Sergey Chernov Date: Thu, 7 Nov 2024 08:53:05 -0800 Subject: [PATCH] adjusted release/nightly to use LTS or predefined CH_VERSION --- .github/workflows/nightly.yml | 5 +++-- .github/workflows/release.yml | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f49ef4287..a4023c3d4 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -13,6 +13,7 @@ on: env: CHC_BRANCH: "main" CHC_VERSION: "0.7.1" + CH_VERSION: "24.8" jobs: nightly: @@ -66,7 +67,7 @@ jobs: uses: samuelmeuli/action-maven-publish@v1 with: maven_profiles: release - maven_args: -q --batch-mode + maven_args: -q --batch-mode -DclickhouseVersion=${{ env.CH_VERSION }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }} @@ -76,7 +77,7 @@ jobs: with: directory: clickhouse-r2dbc maven_profiles: release - maven_args: -q --batch-mode -Dr2dbc-spi.version=0.9.1.RELEASE + maven_args: -q --batch-mode -Dr2dbc-spi.version=0.9.1.RELEASE -DclickhouseVersion=${{ env.CH_VERSION }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f8b7c901..887367ac3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ on: required: true default: "0.7.1-SNAPSHOT" +env: + CH_VERSION: "24.8" + jobs: release: name: "Build and Publish Artifact" @@ -54,7 +57,7 @@ jobs: uses: samuelmeuli/action-maven-publish@v1 with: maven_profiles: release - maven_args: -q --batch-mode + maven_args: -q --batch-mode -DclickhouseVersion=${{ env.CH_VERSION }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }} @@ -64,7 +67,7 @@ jobs: with: directory: clickhouse-r2dbc maven_profiles: release - maven_args: -q --batch-mode -Dr2dbc-spi.version=0.9.1.RELEASE + maven_args: -q --batch-mode -Dr2dbc-spi.version=0.9.1.RELEASE -DclickhouseVersion=${{ env.CH_VERSION }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_TOKEN_USER }}