Skip to content

Commit 8231c8c

Browse files
ci: build addons zip to a different folder so it doesnt pack itself
1 parent 8c2d21b commit 8231c8c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build_addons.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
uses: softprops/action-gh-release@v2
3030
with:
3131
tag_name: ${{steps.release_tag.outputs.tag}}
32-
files: _out/addons.zip
32+
files: addons.zip
3333
generate_release_notes: true
3434
make_latest: true

_build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def build_addon(addon_dir: str, output_dir_parent: str) -> None:
3737

3838
def zip_addons(parent_dir: str, stem: str) -> None:
3939
print(f"Zipping contents of {parent_dir} into {stem}.zip")
40-
shutil.make_archive(os.path.join(parent_dir, stem), "zip", parent_dir)
40+
shutil.make_archive(os.path.join(parent_dir, os.path.pardir, stem), "zip", parent_dir)
4141

4242

4343
def build(addon_root_dir: str) -> None:

0 commit comments

Comments
 (0)