diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31ad919e..9383cdc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,13 +206,13 @@ jobs: - 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 - mvn release:prepare \ - -DskipTests=true \ - -DscmCommentPrefix="[maven-release-plugin][skip ci] " \ - -Dusername=$GIT_USERNAME \ - -Dpassword=$GIT_PASSWORD \ - -DautoVersionSubmodules=true \ - -DtagNameFormat=@{project.version} \ - -Dtag=$VERSION \ - -B \ No newline at end of file + VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//') + mvn 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