Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pefribeiro authored Feb 13, 2024
1 parent 786c8d8 commit 7c22c79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
packages: write

steps:

- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
Expand All @@ -26,6 +27,11 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Set version
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
mvn versions:set -DnewVersion=$RELEASE_VERSION
- name: Build with Maven
run: mvn -B package --file pom.xml

Expand Down

0 comments on commit 7c22c79

Please sign in to comment.