Skip to content

Commit

Permalink
Cleanup zip file on release (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Oct 1, 2024
1 parent a2bd2a9 commit f9fc36f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/main_repo_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f9fc36f

Please sign in to comment.