Skip to content

Commit 80b519b

Browse files
authored
Merge pull request #4 from emlagowski/feature/auto_mvn_versioning
Auto mvn version update from git tag
2 parents ddd42a1 + 7cef4da commit 80b519b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/mavenpublish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2222
settings-path: ${{ github.workspace }} # location for the settings.xml file
2323

24+
- name: Set maven version
25+
run: mvn versions:set -DnewVersion=${GITHUB_REF##*/}
26+
2427
- name: Build with Maven
2528
run: mvn -B package -pl validify-core --file pom.xml
2629

0 commit comments

Comments
 (0)