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,6 +1,8 @@
#!/usr/local/bin/xonsh
try:
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/*