Makefile 327 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.PHONY: release

all:

release:
ifndef version
	$(error Please supply a version)
endif
	@echo Releasing version $(version)
ifeq (,$(findstring $(version),$(shell git log --oneline -1)))
	$(error Last commit does not match version)
endif
	git tag $(version)
	git push
	git push --tags
16
	#python setup.py sdist bdist_wheel upload