mirror of
https://github.com/django/daphne.git
synced 2024-11-21 15:36:33 +03:00
Add release makefile
This commit is contained in:
parent
6679b8dfdf
commit
2422c6382b
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
.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
|
||||
python setup.py sdist bdist_wheel upload
|
Loading…
Reference in New Issue
Block a user