[ACS-9977]: [publish] tag creation fix work

This commit is contained in:
vivekkr0311
2025-08-06 17:04:45 +05:30
parent 05aa9a952e
commit 6ec249d895

View File

@@ -203,16 +203,18 @@ jobs:
run: | run: |
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}" git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}" git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
- name: "Publish" - name: "Create release tag"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: | run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') mvn --batch-mode \
mvn release:clean release:prepare \ release:prepare \
-DskipTests=true \ -DskipTests=true \
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \ -DscmCommentPrefix="[maven-release-plugin][skip ci] " \
-Dusername=$GIT_USERNAME \ -Dusername=$GIT_USERNAME \
-Dpassword=$GIT_PASSWORD \ -Dpassword=$GIT_PASSWORD \
-DautoVersionSubmodules=true \ -DautoVersionSubmodules=true \
-DtagNameFormat=@{project.version} \ -DtagNameFormat=@{project.version} \
-Dtag=$VERSION -B -B
mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE - 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