Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jan 8, 2024
1 parent d9d9312 commit ec7fa23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ format:
clean:
rm -rf build dist *.egg-info

version := $(shell python -m imshow --version | awk '{print $$2}')

publish: clean
pip install -e .
git pull origin main
git tag v$(shell python -m imshow --version | awk '{print $$2}')
git tag v$(version)
git push origin main --tags
python -m build --sdist --wheel
python -m twine upload dist/imshow-*
python -m twine upload dist/imshow-$(version)*

0 comments on commit ec7fa23

Please sign in to comment.