do not release if uncommitted changes

This commit is contained in:
Maxim Kurnikov
2019-04-15 14:57:44 +03:00
parent 629ba954b4
commit 79d691732d

View File

@@ -1,9 +1,11 @@
#!/usr/local/bin/xonsh
try:
pip install wheel twine
python setup.py sdist bdist_wheel
twine upload dist/*
no_uncommitted_changes = bool(!(git diff-index --quiet HEAD --))
if no_uncommitted_changes:
pip install wheel twine
python setup.py sdist bdist_wheel
twine upload dist/*
finally:
rm -rf dist/ build/