Skip to content

Commit 3d25ca4

Browse files
committed
Working copy check before publish added
1 parent 2ff0e9c commit 3d25ca4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ clean:
2020
dist: clean
2121
python3 setup.py sdist bdist_wheel
2222

23+
.PHONY: check_git
24+
check_git:
25+
git fetch origin
26+
git diff origin/master --exit-code
27+
2328
.PHONY: publish
24-
publish: format test dist
29+
publish: check_git test dist
2530
python3 -m twine upload dist/*

0 commit comments

Comments
 (0)