Skip to content

Commit

Permalink
Improved the makefile to create better release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonstur committed Oct 28, 2019
1 parent 3717320 commit e14663d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
DATE=`date +'%F'`
NAME=`xmllint --xpath "//project/artifactId/text()" pom.xml`
VERSION=`xmllint --xpath "//project/version/text()" pom.xml`
PREVIOUS_TAG=`git tag | sort -r | head -n 1`

clean:
@echo "[$(NAME)] Cleaning"
Expand All @@ -21,7 +22,7 @@ release-notes:
@echo "[$(NAME)] Writing release notes to src/docs/releases/release-$(VERSION).txt"
@echo "$(VERSION)" > src/docs/releases/release-$(VERSION).txt
@echo "" >> src/docs/releases/release-$(VERSION).txt
@git log --pretty="%ci %an %s" master >> src/docs/releases/release-$(VERSION).txt
@git log --pretty="%s" $(PREVIOUS_TAG)... master >> src/docs/releases/release-$(VERSION).txt

deploy: build
@echo "[$(NAME)] Tagging and pushing to github"
Expand Down

0 comments on commit e14663d

Please sign in to comment.