mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 12:42:41 +00:00
Bail out of the release if twine fails
This commit is contained in:
parent
7f94431409
commit
eb810b6f38
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue