Skip to content

Commit cc5528d

Browse files
Will now (hopefully) specify the SNAPSHOT version of the release based on the release version specified when the release is performed before the action-maven-publish workflow plugin performs the release.
1 parent 98f36b1 commit cc5528d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
git config user.email "[email protected]"
2626
git config user.name "GitHub Actions"
2727
28+
- if: github.event.release
29+
name: Update version in pom.xml (Release only)
30+
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }}-SNAPSHOT
31+
2832
- name: Release Maven package
2933
uses: samuelmeuli/action-maven-publish@v1
3034
with:
@@ -34,3 +38,4 @@ jobs:
3438
nexus_password: ${{ secrets.nexus_password }}
3539
maven_profiles: publish
3640
maven_goals_phases: release:prepare release:perform
41+
maven_args: -B

0 commit comments

Comments
 (0)