Skip to content

Commit a0e85a0

Browse files
committed
[ACS-9977]: [publish] automatic tag creation work
1 parent 235e4d2 commit a0e85a0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ jobs:
176176
runs-on: ubuntu-latest
177177
needs: [tests]
178178
if: >
179-
contains(github.event.head_commit.message, '[publish]') &&
180-
github.ref_name == 'master'
179+
contains(github.event.head_commit.message, '[publish]')
181180
steps:
182181
- uses: actions/checkout@v4
183182
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
@@ -204,6 +203,10 @@ jobs:
204203
run: |
205204
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
206205
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
206+
- name: "Publish"
207+
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
208+
run: |
209+
mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
207210
- name: "Create release tag"
208211
run: |
209212
mvn --batch-mode clean package gpg:sign -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
@@ -213,8 +216,4 @@ jobs:
213216
-Dpassword=$GIT_PASSWORD \
214217
-DautoVersionSubmodules=true \
215218
-DtagNameFormat=@{project.version} \
216-
-B
217-
- name: "Publish"
218-
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
219-
run: |
220-
mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
219+
-B

0 commit comments

Comments
 (0)