Skip to content

Commit

Permalink
Actually use the correct version in glob expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Nov 10, 2023
1 parent 6883bbd commit 5e39e79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
mvn --batch-mode release:prepare -Darguments="-Dmaven.deploy.skip=true -DskipTests"
# Get the release version from the pom.xml before the next snapshot increment
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
mvn --batch-mode release:perform
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed "s/-SNAPSHOT//)
TAG=$(git describe --abbrev=0 --tags)
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "tag=${TAG}" >> $GITHUB_OUTPUT
# Perform the release/deploy and increment the version to the next snapshot
mvn --batch-mode release:prepare -Darguments="-Dmaven.deploy.skip=true -DskipTests"
mvn --batch-mode release:perform
- name: Create GitHub release draft
uses: release-drafter/release-drafter@v5
Expand Down

0 comments on commit 5e39e79

Please sign in to comment.