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