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

This commit is contained in:
vivekkr0311
2025-08-06 15:00:25 +05:30
parent 60ddc2afac
commit 33133e2f78

View File

@@ -206,13 +206,13 @@ jobs:
- name: "Publish" - name: "Publish"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: | run: |
mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
mvn release:prepare \ mvn 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 \ -Dtag=$VERSION -B
-B mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE