Skip to content

Commit

Permalink
Release script++
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Nov 6, 2019
1 parent 04cfd64 commit 3d0bf6d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,18 @@ git tag -a "v${new_version}" -m "Release v${new_version}"

git push origin master:master
git push origin --tags
git push origin master:stable -f

range="v${new_version}...v${current_version}"
changelog="$(git log --format='%s %h' $range | sed -E 's/(.*)/- \1/') | sed 1,1d"
changelog="${changelog}\n\nAll changes:\nhttps://github.com/${project}/compare/${range}"

echo
echo
git log --format=' - %s %h' $range | sed 1,1d
echo
echo
echo "All changes https://github.com/${project}/compare/${range}"
echo
echo

set -x
open "https://github.com/${project}/releases/new?title=v${new_version}&tag=v${new_version}&body=${changelog}"
open "https://github.com/${project}/releases/new?title=v${new_version}&tag=v${new_version}"

0 comments on commit 3d0bf6d

Please sign in to comment.