Skip to content

Commit b442cb6

Browse files
committed
Add tagging to release workflow.
1 parent c5b8893 commit b442cb6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,13 @@ jobs:
144144
GPG_PKEY_PASS: ${{ secrets.GPG_PKEY_PASS }}
145145
NEXUS_USER: ${{ secrets.NEXUS_USER }}
146146
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}
147+
148+
- name: Tag version (RELEASE)
149+
if: startsWith(github.ref, 'refs/heads/release/')
150+
run: |
151+
export REVISION=$(</tmp/mvnw-project-version.out)
152+
export TAG="v$REVISION"
153+
git config user.name github-actions
154+
git config user.email [email protected]
155+
git tag "$TAG"
156+
git push origin "$TAG"

0 commit comments

Comments
 (0)