Skip to content

Commit f9fc36f

Browse files
authored
Cleanup zip file on release (#1057)
1 parent a2bd2a9 commit f9fc36f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/main_repo_release.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def download_and_extract(version, temp_dir):
1818

1919
with zipfile.ZipFile(zip_path, "r") as zip_ref:
2020
zip_ref.extractall(temp_dir)
21+
22+
# Clean up the zip file after extraction
23+
os.remove(zip_path)
2124
else:
2225
raise Exception(
2326
f"Failed to download release asset. Status code: {response.status_code}"

0 commit comments

Comments
 (0)