Skip to content

Commit

Permalink
CI: Change the folder that needs to go into the .zip file from io_sce…
Browse files Browse the repository at this point in the history
…ne_sphnx to io_scene_sphinx, to match the rewritten version from Jordi.

Signed-off-by: Swyter <[email protected]>
  • Loading branch information
Swyter committed Jan 30, 2025
1 parent fe6fa04 commit b0f6350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0f6350

Please sign in to comment.