1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +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] sdist = glob.glob(os.path.join("dist/", 'svtplay_dl-*.tar.gz'))[0]
subprocess.check_call(["twine", "upload", sdist]) 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) sys.exit(0)