Skip to content

Commit

Permalink
Add tagging to release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
vy committed Feb 4, 2022
1 parent c5b8893 commit b442cb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,13 @@ jobs:
GPG_PKEY_PASS: ${{ secrets.GPG_PKEY_PASS }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}

- name: Tag version (RELEASE)
if: startsWith(github.ref, 'refs/heads/release/')
run: |
export REVISION=$(</tmp/mvnw-project-version.out)
export TAG="v$REVISION"
git config user.name github-actions
git config user.email [email protected]
git tag "$TAG"
git push origin "$TAG"

0 comments on commit b442cb6

Please sign in to comment.