From fa57c4427405f28a79add14ee2c1abc60f231952 Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Tue, 24 Oct 2023 11:25:47 +1100 Subject: [PATCH] Added: simple changelog --- Makefile.pyproject | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.pyproject b/Makefile.pyproject index f0611b49..662a6775 100644 --- a/Makefile.pyproject +++ b/Makefile.pyproject @@ -115,10 +115,16 @@ version: typecheck lint test bump-$(VERSIONING) build: clean venv $(VENV)/python -m build +.PHONY: changelog.md +changelog.md: + $(eval PREV_RELEASE=$(shell git tag -l v* | tail -1)) + $(shell git log --pretty="- %s" $(PREV_RELEASE)..HEAD --grep "^Changed:" --grep "^Fixed:" --grep "^Added:" --grep "^Changed:" --grep "^Removed:" --output=changelog.md) + # requires /.github/workflows/release.yml .PHONY: release release: py_version - git tag -a "v$(VERSION)" -m "v$(VERSION)" + git tag -a "v$(VERSION)" -F changelog.md + rm -f changelog.md git push git push --tags origin # github action will push to pypi and create a release