From b0f6350ae0e59d92d4e01f5a53dc28b71b76b6b1 Mon Sep 17 00:00:00 2001 From: Swyter Date: Thu, 30 Jan 2025 03:21:06 +0100 Subject: [PATCH] CI: Change the folder that needs to go into the .zip file from io_scene_sphnx to io_scene_sphinx, to match the rewritten version from Jordi. Signed-off-by: Swyter --- .github/workflows/zip.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/zip.yml b/.github/workflows/zip.yml index 2b75022..18c36c1 100644 --- a/.github/workflows/zip.yml +++ b/.github/workflows/zip.yml @@ -25,11 +25,11 @@ jobs: # we need to do this because python throws an error due to the invalid octal prefix: # https://unix.stackexchange.com/a/79372/295814 # https://stackoverflow.com/a/1315213/674685 ' -> '\'' - sed -i --regexp-extended 's/('\''version'\'':) .+(,.+)/\1 '"$(date "+(%-Y, %-m, %-d)" -u)"'\2/' io_scene_sphnx/__init__.py + sed -i --regexp-extended 's/('\''version'\'':) .+(,.+)/\1 '"$(date "+(%-Y, %-m, %-d)" -u)"'\2/' io_scene_sphinx/__init__.py # swy: only pack it when the folder has changed since the last time we ran a GitHub Actions job - if [[ ! -z "$(git diff --quiet HEAD "$prev_run_sha" -- io_scene_sphnx || echo changed)" || "$(git rev-list --format=%B --max-count=1 HEAD | grep --count --ignore-case --max-count=1 '!force')" -ge 1 ]]; then - 7z a "sphinx-blender-tools-$(date +%Y.%m.%d-%H.%M -u).zip" io_scene_sphnx + if [[ ! -z "$(git diff --quiet HEAD "$prev_run_sha" -- io_scene_sphinx || echo changed)" || "$(git rev-list --format=%B --max-count=1 HEAD | grep --count --ignore-case --max-count=1 '!force')" -ge 1 ]]; then + 7z a "sphinx-blender-tools-$(date +%Y.%m.%d-%H.%M -u).zip" io_scene_sphinx fi - name: Upload Release Asset