diff --git a/Makefile b/Makefile index 81dfe6c901..930d3be406 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ VENV := venv PYTHON := $(VENV)/bin/python HOST = $(shell ifconfig | grep "inet " | tail -1 | cut -d\ -f2) +TAG = v$(shell grep -E '__version__ = ".*"' pyrogram/__init__.py | cut -d\" -f2) RM := rm -rf @@ -30,4 +31,12 @@ api: build: make clean $(PYTHON) setup.py sdist - $(PYTHON) setup.py bdist_wheel \ No newline at end of file + $(PYTHON) setup.py bdist_wheel + +tag: + git tag $(TAG) + git push origin $(TAG) + +dtag: + git tag -d $(TAG) + git push origin -d $(TAG) \ No newline at end of file