Skip to content

Commit

Permalink
Merge #656
Browse files Browse the repository at this point in the history
656: Fix the examples zip job r=AstraLuma a=pathunstrom

we were saving into `working_directory/examples.zip` and uploading `temporary_directory/examples.zip` This builds and uploads from the temp directory.

Co-authored-by: Piper Thunstrom <pathunstrom@gmail.com>
  • Loading branch information
bors[bot] and pathunstrom authored Dec 30, 2021
2 parents 904d750 + e030a7e commit d857c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/upload.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PROJECT = os.getcwd()

with tempfile.TemporaryDirectory() as td:
print("Bundling examples...")
with zipfile.ZipFile(f"{PROJECT}/examples.zip", 'w', compression=zipfile.ZIP_LZMA) as examples:
with zipfile.ZipFile(f"{td}/examples.zip", 'w', compression=zipfile.ZIP_LZMA) as examples:
for name, _, files in os.walk('examples'):
if '__pycache__' in name:
continue
Expand Down

0 comments on commit d857c46

Please sign in to comment.