From e6d00379c827c25f7115a34131222fbb771afac8 Mon Sep 17 00:00:00 2001 From: Zhichun Wu Date: Mon, 1 Feb 2021 23:17:00 +0800 Subject: [PATCH 1/3] Use static version instead of property-based revision --- .github/workflows/release.yml | 3 ++- pom.xml | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8653d4979..4e04e0655 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 + - run: sed -i -e 's|\(\).*\(\)|\1${{ github.event.inputs.version }}\2|' clickhouse-jdbc/pom.xml - name: Release Maven package uses: samuelmeuli/action-maven-publish@v1 with: maven_profiles: release - maven_args: -Drevision=${{ github.event.inputs.version }} --batch-mode + maven_args: --batch-mode gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.SONATYPE_USER }} diff --git a/pom.xml b/pom.xml index a90f22521..73ffe765b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ ru.yandex.clickhouse clickhouse-jdbc - ${revision} + 0.2.6 jar clickhouse-jdbc @@ -52,7 +52,6 @@ - 0.2.6 1.7.30 2021 UTF-8 From 38ae23b5429463132d0f913f6c023bc13a84c2a2 Mon Sep 17 00:00:00 2001 From: Zhichun Wu Date: Mon, 1 Feb 2021 23:21:02 +0800 Subject: [PATCH 2/3] Correct path --- .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 4e04e0655..e28f38a9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - - run: sed -i -e 's|\(\).*\(\)|\1${{ github.event.inputs.version }}\2|' clickhouse-jdbc/pom.xml + - run: sed -i -e 's|\(\).*\(\)|\1${{ github.event.inputs.version }}\2|' pom.xml - name: Release Maven package uses: samuelmeuli/action-maven-publish@v1 with: From e811a7ebbb4cb0ed4d3898057be25be3f4000851 Mon Sep 17 00:00:00 2001 From: Zhichun Wu Date: Mon, 1 Feb 2021 23:26:47 +0800 Subject: [PATCH 3/3] Only replace the first version --- .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 e28f38a9a..d13b22284 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - - run: sed -i -e 's|\(\).*\(\)|\1${{ github.event.inputs.version }}\2|' pom.xml + - run: sed -i -e 's|^\( \).*\(\)$|\1${{ github.event.inputs.version }}\2|' pom.xml - name: Release Maven package uses: samuelmeuli/action-maven-publish@v1 with: