From 6ec249d89562f5ee1527704d4fcc246d241992e8 Mon Sep 17 00:00:00 2001 From: vivekkr0311 Date: Wed, 6 Aug 2025 17:04:45 +0530 Subject: [PATCH] [ACS-9977]: [publish] tag creation fix work --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7bfc7ac..2fb8227b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -203,16 +203,18 @@ jobs: run: | git config --global user.name "${GIT_USERNAME:-github-actions[bot]}" git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}" - - name: "Publish" - timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} + - name: "Create release tag" run: | - VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') - mvn release:clean release:prepare \ + mvn --batch-mode \ + release:prepare \ -DskipTests=true \ -DscmCommentPrefix="[maven-release-plugin][skip ci] " \ -Dusername=$GIT_USERNAME \ -Dpassword=$GIT_PASSWORD \ -DautoVersionSubmodules=true \ -DtagNameFormat=@{project.version} \ - -Dtag=$VERSION -B - mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \ No newline at end of file + -B + - name: "Publish" + timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} + run: | + mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \ No newline at end of file