1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

cibuild: run this on custom branches and not on tagged builds

This commit is contained in:
Johan Andersson 2019-09-03 20:18:21 +02:00
parent d1904b2747
commit 462e700485

View File

@ -118,8 +118,10 @@ def pypi_upload():
sdist = glob.glob(os.path.join("dist/", 'svtplay_dl-*.tar.gz'))[0]
subprocess.check_call(["twine", "upload", sdist])
logger.info("Branch: {}".format(branch()))
logger.info("Tag: {}".format(tag()))
if branch() != "master":
if not tag() and branch() != "master":
sys.exit(0)