Compare commits

...

1 Commits
v0.6.1 ... main

Author SHA1 Message Date
Pavle Portic 700a15be98
Add publish target to makefile 2022-10-30 12:08:51 +01:00
1 changed files with 8 additions and 0 deletions

View File

@ -29,3 +29,11 @@ clean:
rm -rf $(CURDIR)/build
rm -rf $(CURDIR)/dist
rm -rf $(CURDIR)/$(NAME).egg-info
publish:
@git checkout $(shell git tag | sort -V | tail -n1) >/dev/null 2>&1
@$(MAKE) clean > /dev/null
@$(MAKE) build > /dev/null
@twine upload dist/*
@$(MAKE) clean > /dev/null
@git switch main >/dev/null 2>&1