From 2aae10193e9f792b39edaa88a99bde92bf499cf5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 18 Nov 2022 12:14:31 +0100 Subject: [PATCH] Add tag command to Makefile --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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