Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
Adding mvn clean command during release to avoid pom.xml files in the target directories
  • Loading branch information
adesjardin authored Feb 11, 2021
1 parent fc095c1 commit 1fcf2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ jobs:
git config --global user.email "${{ secrets.GIT_EMAIL }}"
git config --global user.name "${{ secrets.GIT_USER }}"
git tag -a v${{ steps.set-version.outputs.version }} -m "Version ${{ steps.set-version.outputs.version }}"
mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT -DprocessAllModules versions:commit
mvn clean build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT -DprocessAllModules versions:commit
find . -name 'pom.xml' | xargs git add
git commit -m "Incrementing to next SNAPSHOT patch version"
git push --follow-tags

0 comments on commit 1fcf2ef

Please sign in to comment.