Skip to content

Commit e88eaa2

Browse files
committed
[ACS-9977]: [publish] automatic tag creation work
1 parent a8dca7f commit e88eaa2

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,28 @@ jobs:
203203
run: |
204204
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
205205
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
206-
- name: "Publish"
206+
- name: "Create release tag"
207+
run: |
208+
mvn --batch-mode release:prepare \
209+
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
210+
-Dusername=$GIT_USERNAME \
211+
-Dpassword=$GIT_PASSWORD \
212+
-Psdk-release \
213+
-DskipTests=true \
214+
-Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
215+
-DautoVersionSubmodules=true \
216+
-DtagNameFormat=@{project.version} \
217+
-B
218+
219+
- name: "Checkout release tag"
220+
run: |
221+
git fetch --tags
222+
git checkout $(git describe --tags --abbrev=0)
223+
224+
- name: "Build & Publish"
207225
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
208226
run: |
209-
mvn --batch-mode clean package gpg:sign central-publishing:publish release:prepare \
210-
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
211-
-Dusername=$GIT_USERNAME \
212-
-Dpassword=$GIT_PASSWORD \
213-
-Psdk-release \
214-
-DskipTests=true \
215-
-Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
216-
-DautoVersionSubmodules=true \
217-
-DtagNameFormat=@{project.version} \
218-
-B
227+
mvn --batch-mode clean verify gpg:sign central-publishing:publish \
228+
-P sdk-release \
229+
-DskipTests=true \
230+
-Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE

0 commit comments

Comments
 (0)