mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-14 17:59:13 +00:00
[ACS-9977]: [publish] automatic tag creation work
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -176,8 +176,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [tests]
|
||||
if: >
|
||||
contains(github.event.head_commit.message, '[publish]') &&
|
||||
github.ref_name == 'master'
|
||||
contains(github.event.head_commit.message, '[publish]')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.28.1
|
||||
@@ -204,6 +203,10 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
|
||||
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
|
||||
- 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
|
||||
- name: "Create release tag"
|
||||
run: |
|
||||
mvn --batch-mode clean package gpg:sign -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
|
||||
@@ -214,7 +217,3 @@ jobs:
|
||||
-DautoVersionSubmodules=true \
|
||||
-DtagNameFormat=@{project.version} \
|
||||
-B
|
||||
- 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
|
Reference in New Issue
Block a user