Skip to content

Commit

Permalink
Add creating and committing changelog to Makefile release directive
Browse files Browse the repository at this point in the history
  • Loading branch information
montanaflynn committed Feb 18, 2020
1 parent d4efa02 commit 7716e4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ docs:
godoc2md github.com/montanaflynn/stats | sed -e s#src/target/##g > DOCUMENTATION.md

release:
git-chglog --next-tag ${TAG} ${TAG} -o CHANGELOG.md
git add CHANGELOG.md
git commit -m "Update changelog with ${TAG} changes"
git tag ${TAG}
git-chglog $(TAG) | tail -n +4 | sed '1s/^/$(TAG)\n/gm' > release-notes.txt
git push origin master ${TAG}
Expand Down

0 comments on commit 7716e4c

Please sign in to comment.