Skip to content

Commit

Permalink
Fix target tag-release to use existing VERSION variable
Browse files Browse the repository at this point in the history
  • Loading branch information
malemburg committed Aug 21, 2023
1 parent 19d984c commit fc0b04d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ all:
echo "Please check the Makefile for available targets"

VERSION := $(shell python3 -c "import setup; print(setup.metadata.version)")
TAG := 'egenix-telegram-antispam-bot-$(shell python3 -c "import setup; print(setup.metadata.version)")'

### Prepare the virtual env

Expand Down Expand Up @@ -33,7 +34,7 @@ create-dist: clean
python3 setup.py sdist bdist_wheel

tag-release:
git tag `python3 -c "from telegram_antispam_bot import __version__; print (f'egenix-telegram-antispam-bot-{__version__}')"`
git tag -a $(TAG) -m "Release $(VERSION)"
git push origin --tags

test-upload:
Expand Down

0 comments on commit fc0b04d

Please sign in to comment.