Skip to content

Commit

Permalink
fix: changed the approach to get the version out of the pom file, and…
Browse files Browse the repository at this point in the history
… evaluate the create release
  • Loading branch information
lfdesousa committed Jun 7, 2024
1 parent de9e012 commit 4052cd6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@ jobs:
with:
name: Package
path: staging
- name: GetVersion
uses: ./
id: getVersion
- name: Print the version
run: echo "The version we just got is ${{ steps.getVersion.outputs.version }}"
- name: Set Release version env variable
run: |
echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_VERSION }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
# Below we need to temporarily disable
#- name: Generate the Jacoco report
# run: mvn jacoco:report
Expand Down

0 comments on commit 4052cd6

Please sign in to comment.