Skip to content

Commit

Permalink
fix: release-script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Oct 8, 2022
1 parent 7cc5d15 commit ebfaa8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<goal>git-changelog</goal>
</goals>
<configuration>
<updatePomWithNextSemanticVersion>true</updatePomWithNextSemanticVersion>
<updatePomWithNextSemanticVersion>false</updatePomWithNextSemanticVersion>
<readableTagName>-([^-]+?)$</readableTagName>
<ignoreCommitsIfMessageMatches>^\[maven-release-plugin\].*</ignoreCommitsIfMessageMatches>
</configuration>
Expand Down Expand Up @@ -240,4 +240,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
5 changes: 4 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

gpg -o /tmp/dummy --sign .gitignore \
&& nextVersion=$(npx git-changelog-command-line --print-next-version) \
&& ./mvnw versions:set -DnewVersion=$nextVersion-SNAPSHOT \
&& git commit -a -m "chore: setting version $nextVersion-SNAPSHOT"

./mvnw release:prepare release:perform -B -DperformRelease=true \
&& npx git-changelog-command-line -of CHANGELOG.md -ip ".*maven-release-plugin.*" \
&& git commit -a -m "chore: updating changelog" \
&& git push \
|| git clean -f && git checkout pom.xml
|| git clean -f && git checkout pom.xml

0 comments on commit ebfaa8f

Please sign in to comment.