Skip to content

Commit

Permalink
Merge branch 'mnot/321' of github.com:mnot/redbot into mnot/321
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Nov 3, 2023
2 parents f6c19a6 + 5e13690 commit 426a146
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "16.x"
- name: Cache playwright binaries
Expand Down
10 changes: 8 additions & 2 deletions 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)"
release: py_version changelog.md
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 426a146

Please sign in to comment.