mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-21 18:09:29 +00:00
[ACS-9977]: [publish] automatic tag creation work, adding git command
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -204,15 +204,16 @@ jobs:
|
|||||||
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"
|
- name: "Publish"
|
||||||
|
id: publish
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: |
|
run: |
|
||||||
mvn --batch-mode clean package gpg:sign central-publishing:publish release:prepare release:perform \
|
mvn --batch-mode clean package gpg:sign central-publishing:publish -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE
|
||||||
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
|
- name: "Create release tag"
|
||||||
-Dusername=$GIT_USERNAME \
|
if: success() && steps.publish.outcome == 'success'
|
||||||
-Dpassword=$GIT_PASSWORD \
|
run: |
|
||||||
-Psdk-release \
|
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
|
||||||
-DskipTests=true \
|
ARTIFACT_ID=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
|
||||||
-Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \
|
git config --global user.name "${GIT_USERNAME:-github-actions[bot]}"
|
||||||
-DautoVersionSubmodules=true \
|
git config --global user.email "${GIT_EMAIL:-github-actions[bot]@users.noreply.github.com}"
|
||||||
-DtagNameFormat=@{project.version} \
|
git tag "$ARTIFACT_ID"-"$VERSION"
|
||||||
-B
|
git push origin "$ARTIFACT_ID"-"$VERSION"
|
||||||
|
Reference in New Issue
Block a user