Skip to content

Commit

Permalink
Update release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bosob committed Oct 6, 2020
1 parent 2293d2d commit 1670a49
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ fi
release_version=$1
development_version="$2-SNAPSHOT"

echo "Release notes by git commit message generated (see .release_notes_$release_version.txt"
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E > .release_notes_"$release_version".txt
#git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="^\s*(\[FEATURE\]|\[FIX\])]" > .release_notes_"$release_version".txt
#git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="^\s*(\[INTERNAL\]|\[FEATURE\]|\[FIX\]|\[DOC\])*(\[FEATURE\]|\[FIX\])]" > .release_notes_"$release_version".txt

echo "Start release $release_version by adding tag (see Travis CI)"
git tag -a $release_version -m "Release $release_version"
git push origin $release_version
Expand All @@ -23,8 +28,5 @@ mvn org.codehaus.mojo:versions-maven-plugin:2.5:commit
git ls-files --modified | grep 'pom\.xml$' | xargs git add
git commit -m "Update development version to $development_version"

echo "Release notes by git commit message generated (see .release_notes_$release_version.txt"
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="^\s*(\[FEATURE\]|\[FIX\])]" > .release_notes_"$release_version".txt
#git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="^\s*(\[INTERNAL\]|\[FEATURE\]|\[FIX\]|\[DOC\])*(\[FEATURE\]|\[FIX\])]" > .release_notes_"$release_version".txt

echo "Please commit and push the change with 'git push origin' and update release notes in GitHub!"
echo "Please commit and push the change with 'git push origin' and update release notes in GitHub!"
echo "Please update version on README.md!"

0 comments on commit 1670a49

Please sign in to comment.