Bail out of the release if twine fails
This commit is contained in:
parent
7f94431409
commit
eb810b6f38
|
@ -485,7 +485,7 @@ def _upload(gh_token: Optional[str]) -> None:
|
||||||
urllib.request.urlretrieve(asset_download_url, filename=filename)
|
urllib.request.urlretrieve(asset_download_url, filename=filename)
|
||||||
|
|
||||||
if click.confirm("Upload to PyPI?", default=True):
|
if click.confirm("Upload to PyPI?", default=True):
|
||||||
subprocess.run("twine upload *", shell=True, cwd=tmpdir)
|
subprocess.run("twine upload *", shell=True, cwd=tmpdir, check=True)
|
||||||
|
|
||||||
click.echo(
|
click.echo(
|
||||||
f"Done! Remember to merge the tag {tag_name} into the appropriate branches"
|
f"Done! Remember to merge the tag {tag_name} into the appropriate branches"
|
||||||
|
|
Loading…
Reference in New Issue