Bail out of the release if twine fails

This commit is contained in:
David Robertson 2023-10-24 14:30:09 +01:00
parent 7f94431409
commit eb810b6f38
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ def _upload(gh_token: Optional[str]) -> None:
urllib.request.urlretrieve(asset_download_url, filename=filename)
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(
f"Done! Remember to merge the tag {tag_name} into the appropriate branches"