Skip to content

Commit d88849d

Browse files
committed
Separate commit and push in release workflow
- Fixes #452
1 parent 932e9d5 commit d88849d

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/release-milestone.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
-DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-${{ github.event.inputs.milestone }}' \
4343
-B
4444
echo PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) >> $GITHUB_ENV
45+
- name: Tag Release
46+
env:
47+
PROJECT_VERSION: ${{ env.PROJECT_VERSION }}
48+
run: |
49+
git config --global user.name github-actions[bot]
50+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
51+
git checkout -b $PROJECT_VERSION
52+
git commit -a -m "Release $PROJECT_VERSION"
53+
git tag "v$PROJECT_VERSION"
4554
- name: Build and Publish
4655
env:
4756
DISABLE_SAMPLES: true
@@ -50,12 +59,12 @@ jobs:
5059
jfrog rt mvn clean install \
5160
-DskipTests -U -B
5261
jfrog rt build-publish
53-
- name: Tag Release
54-
uses: jvalkeal/build-zoo-handler@v0.0.4
55-
with:
56-
tag-release-branch: ${{ env.PROJECT_VERSION }}
57-
tag-release-tag: ${{ env.PROJECT_VERSION }}
58-
tag-release-tag-prefix: v
62+
- name: Push Release
63+
env:
64+
PROJECT_VERSION: ${{ env.PROJECT_VERSION }}
65+
run: |
66+
git push origin $PROJECT_VERSION
67+
git push --tags origin
5968
- name: Output
6069
id: output
6170
env:

0 commit comments

Comments
 (0)