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:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -176,8 +176,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [tests]
|
needs: [tests]
|
||||||
if: >
|
if: >
|
||||||
contains(github.event.head_commit.message, '[publish]') &&
|
contains(github.event.head_commit.message, '[publish]')
|
||||||
github.ref_name == 'master'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.28.1
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.28.1
|
||||||
@@ -204,6 +203,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
|
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
|
||||||
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
|
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"
|
- name: "Create release tag"
|
||||||
run: |
|
run: |
|
||||||
mvn --batch-mode clean package gpg:sign -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
|
mvn --batch-mode clean package gpg:sign -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
|
||||||
@@ -213,8 +216,4 @@ jobs:
|
|||||||
-Dpassword=$GIT_PASSWORD \
|
-Dpassword=$GIT_PASSWORD \
|
||||||
-DautoVersionSubmodules=true \
|
-DautoVersionSubmodules=true \
|
||||||
-DtagNameFormat=@{project.version} \
|
-DtagNameFormat=@{project.version} \
|
||||||
-B
|
-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