Skip to content

Commit

Permalink
Merge pull request #1918 from ClickHouse/fix_build_for_release
Browse files Browse the repository at this point in the history
[CI] Adjusted release/nightly to use LTS or predefined CH_VERSION
  • Loading branch information
chernser authored Nov 7, 2024
2 parents 41cd12e + 2c585d1 commit b704b95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
CHC_BRANCH: "main"
CHC_VERSION: "0.7.1"
CH_VERSION: "24.8"

jobs:
nightly:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: true
default: "0.7.1-SNAPSHOT"

env:
CH_VERSION: "24.8"

jobs:
release:
name: "Build and Publish Artifact"
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit b704b95

Please sign in to comment.