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