Cleanup zip file on release (#1057)

This commit is contained in:
Chenlei Hu
2024-10-01 13:13:18 -04:00
committed by GitHub
parent a2bd2a9bae
commit f9fc36f0ed

View File

@@ -18,6 +18,9 @@ def download_and_extract(version, temp_dir):
with zipfile.ZipFile(zip_path, "r") as zip_ref:
zip_ref.extractall(temp_dir)
# Clean up the zip file after extraction
os.remove(zip_path)
else:
raise Exception(
f"Failed to download release asset. Status code: {response.status_code}"