Skip to content

Commit

Permalink
Alter build script to produce github builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Dec 22, 2023
1 parent 8af52a9 commit 5ed2bde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-blender-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
ls -la
- uses: actions/upload-artifact@v3
with:
name: blenderDMX_${{ env.REF }}.zip
name: blenderDMX_${{ env.REF }}
path: build/

8 changes: 6 additions & 2 deletions scripts/build_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def read_version():
print("Zipping release...")
shutil.make_archive(zip_name, "zip", BUILD_DIR)

print("Clearing build directory...")
shutil.rmtree(BUILD_DIR)
if len(sys.argv)>1: # any command line argument will do to skip version check
if sys.argv[1] == "github":
print("Keeping the build directory")
else:
print("Clearing build directory...")
shutil.rmtree(BUILD_DIR)

print("Build successfull! Have a great release!")

0 comments on commit 5ed2bde

Please sign in to comment.