From e35287e02502057f59dcbe5cf578718970c8577a Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Wed, 23 Nov 2022 09:40:31 +0100 Subject: [PATCH] fixed versions in upload script --- tools/upload_appimage.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/upload_appimage.py b/tools/upload_appimage.py index 31a8b07..03fe695 100755 --- a/tools/upload_appimage.py +++ b/tools/upload_appimage.py @@ -83,10 +83,11 @@ if __name__ == "__main__": secret = os.environ["s3_secret"] host = "mirror.infra.pkm:9000" bucket = "nmreval-appimage" - appimage_version = yaml.safe_load(open("AppImageBuilder.yml"))["AppDir"]["app_info"]["version"] - filenames = [f"NMReval-{appimage_version}-x86_64.AppImage", - f"NMReval-{appimage_version}-x86_64.AppImage.zsync", - ] + if "GO_PIPELINE_LABEL" in os.environ: + appimage_version = os.environ["GO_PIPELINE_LABEL"] + else: + appimage_version = yaml.safe_load(open("AppImageBuilder.yml"))["AppDir"]["app_info"]["version"] + print(f"Uploading NMReval-{appimage_version}-x86_64.AppImage and .zsync") upload(key, secret, host, bucket, f"NMReval-{appimage_version}-x86_64.AppImage") upload(key, secret, host, bucket,