From 9609444290e6d3a56e43f1c0a6ea9d047405dc5f Mon Sep 17 00:00:00 2001 From: Anders Payerl Date: Thu, 9 May 2024 10:57:22 +0200 Subject: [PATCH] ci: add version id and add step to increment pom version temporary for release --- .github/workflows/deploy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index cecacbf..4fabf0d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -30,12 +30,15 @@ jobs: }] - name: Bump version and push tag + id: version uses: mathieudutour/github-tag-action@v6.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} release_branches: master create_annotated_tag: false tag_prefix: '' + - name: Bump version in pom.xml + run: mvn versions:set -DnewVersion=${{ steps.version.outputs.new_tag }} - name: Build with Maven run: mvn -B package --file pom.xml - name: Publish to Maven Central