Skip to content

Commit

Permalink
Improve release commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Oct 27, 2024
1 parent 14f34d8 commit a1655f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ tag:
pdm run hatch version "${v}"
git tag -a ${v} -m "${v}"

release:
git add . && git commit -m "Bump version" && git push
git tag -a $(hatch version)
git push origin $(git describe --tags $(git rev-list --tags --max-count=1))

release-patch:
hatch version patch
git add . && git commit -m "Bump version"
git push origin $(git describe --tags $(git rev-list --tags --max-count=1))
make release

release-minor:
hatch version minor
git add . && git commit -m "Bump version"
git push origin $(git describe --tags $(git rev-list --tags --max-count=1))
make release

mypy:
pdm run mypy src

0 comments on commit a1655f3

Please sign in to comment.