do not release if uncommitted changes

This commit is contained in:
Maxim Kurnikov
2019-07-01 00:02:41 +03:00
parent 629ba954b4
commit 79d691732d
+2
View File
@@ -1,6 +1,8 @@
#!/usr/local/bin/xonsh #!/usr/local/bin/xonsh
try: try:
no_uncommitted_changes = bool(!(git diff-index --quiet HEAD --))
if no_uncommitted_changes:
pip install wheel twine pip install wheel twine
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
twine upload dist/* twine upload dist/*