mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 12:44:29 +08:00
do not release if uncommitted changes
This commit is contained in:
@@ -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/
|
||||||
Reference in New Issue
Block a user