From d30939d63c33297d81c7583ad42fb1a91473e474 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Mon, 21 Oct 2024 15:19:19 -0500 Subject: [PATCH] Allow deploy to run with no artifacts --- receivers/electron/scripts/deploy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/receivers/electron/scripts/deploy.py b/receivers/electron/scripts/deploy.py index 5100dce..d8c8d08 100644 --- a/receivers/electron/scripts/deploy.py +++ b/receivers/electron/scripts/deploy.py @@ -58,6 +58,10 @@ os.makedirs(TEMP_DIR, exist_ok=True) # CI functions def copy_artifacts_to_local_cache(): + if len(os.listdir('/artifacts')) == 0: + print('No artifacts were built...') + return None + print('Copying artifacts to cache...') # All artifact should have same version in format: /artifacts/PKG/OS/ARCH/fcast-receiver-VERSION-OS-ARCH.PKG version = os.listdir('/artifacts/zip/linux/x64')[0].split('-')[2]