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
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -211,8 +211,9 @@ jobs:
|
||||
- name: "Create release tag"
|
||||
if: success() && steps.publish.outcome == 'success'
|
||||
run: |
|
||||
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')
|
||||
ARTIFACT_ID=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
|
||||
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 tag "$VERSION"
|
||||
git push origin "$VERSION"
|
||||
git tag "$ARTIFACT_ID"-"$VERSION"
|
||||
git push origin "$ARTIFACT_ID"-"$VERSION"
|
Reference in New Issue
Block a user