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 #!/usr/local/bin/xonsh
try: try:
pip install wheel twine no_uncommitted_changes = bool(!(git diff-index --quiet HEAD --))
python setup.py sdist bdist_wheel if no_uncommitted_changes:
twine upload dist/* pip install wheel twine
python setup.py sdist bdist_wheel
twine upload dist/*
finally: finally:
rm -rf dist/ build/ rm -rf dist/ build/