Skip to content

Commit

Permalink
Added: simple changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Oct 24, 2023
1 parent 2aa47f9 commit fa57c44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile.pyproject
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa57c44

Please sign in to comment.