1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Allow deploy to run with no artifacts

This commit is contained in:
Michael Hollister 2024-10-21 15:19:19 -05:00
parent cb367629f0
commit d30939d63c

View file

@ -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]