Skip to content

Commit

Permalink
Add tag command to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
delivrance committed Nov 18, 2022
1 parent e3e9731 commit 2aae101
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -30,4 +31,12 @@ api:
build:
make clean
$(PYTHON) setup.py sdist
$(PYTHON) setup.py bdist_wheel
$(PYTHON) setup.py bdist_wheel

tag:
git tag $(TAG)
git push origin $(TAG)

dtag:
git tag -d $(TAG)
git push origin -d $(TAG)

0 comments on commit 2aae101

Please sign in to comment.