1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-07-06 22:19:50 +00:00

Re-enable s3 operations

This commit is contained in:
Michael Hollister 2024-10-21 14:07:03 -05:00
parent 5bdce48bb3
commit 780e10584e

View file

@ -58,10 +58,9 @@ def copy_artifacts_to_local_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]
dst = os.path.join(TEMP_DIR, version)
print(f'Current app version: {version}')
shutil.copytree('/artifacts', dst, dirs_exist_ok=True, ignore=shutil.ignore_patterns('*.w*'))
shutil.copytree('/artifacts', dst, dirs_exist_ok=True, ignore=shutil.ignore_patterns('*.w*'))
for dir in os.listdir('/artifacts'):
shutil.rmtree(os.path.join('/artifacts', dir))
@ -125,9 +124,9 @@ def update_website():
# CI Operations
current_version = copy_artifacts_to_local_cache()
# sync_local_cache()
sync_local_cache()
# generate_delta_updates(current_version)
# upload_local_cache()
upload_local_cache()
# generate_previous_releases_page()
# update_website()