From 5ed2bde742f1ff101ab9d139fd9dac32b6395ed4 Mon Sep 17 00:00:00 2001 From: vanous Date: Fri, 22 Dec 2023 16:25:47 +0100 Subject: [PATCH] Alter build script to produce github builds --- .github/workflows/build-blender-addon.yaml | 2 +- scripts/build_release.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-blender-addon.yaml b/.github/workflows/build-blender-addon.yaml index 4fb57078..919ebb8e 100644 --- a/.github/workflows/build-blender-addon.yaml +++ b/.github/workflows/build-blender-addon.yaml @@ -27,6 +27,6 @@ jobs: ls -la - uses: actions/upload-artifact@v3 with: - name: blenderDMX_${{ env.REF }}.zip + name: blenderDMX_${{ env.REF }} path: build/ diff --git a/scripts/build_release.py b/scripts/build_release.py index 0ca04f39..e4ac9a5e 100644 --- a/scripts/build_release.py +++ b/scripts/build_release.py @@ -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!")