Merge pull request #7 from limbonaut/gha-executable-bit-fix

GHA: Double zip editor artifacts for MacOS and Linux (fix for #6).
This commit is contained in:
Serhii Snitsaruk 2023-12-16 22:14:56 +01:00 committed by GitHub
commit 239f6bd94d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -179,6 +179,18 @@ jobs:
mv bin/* ${{env.OUTDIR}}
ls -R out/
# Zipping the editor artifact to retain executable bit;
# workaround for: https://github.com/actions/upload-artifact/issues/38
- name: Zip the editor artifact
if: matrix.target == 'editor'
shell: bash
run: |
pushd out/
zip -r godot-limboai.editor.linux.zip *
rm godot.*
echo -e "## Why another ZIP inside?\n\nWorkaround for: https://github.com/actions/upload-artifact/issues/38\n" > README.md
popd
- name: Rename templates
if: startsWith(matrix.target, 'template')
env:

View File

@ -223,6 +223,8 @@ jobs:
name: macos-editor
path: bin/
# Zipping the editor bundle to retain executable bit;
# workaround for: https://github.com/actions/upload-artifact/issues/38
- name: Make editor bundle
run: |
ls bin/
@ -234,6 +236,11 @@ jobs:
mkdir -p out/editor/Godot.app/Contents/MacOS
cp bin/godot.macos.editor.universal out/editor/Godot.app/Contents/MacOS/Godot
chmod +x out/editor/Godot.app/Contents/MacOS/Godot
pushd out/editor
zip -r Godot.app.zip Godot.app
rm -rf Godot.app
echo -e "## Why another ZIP inside?\n\nWorkaround for: https://github.com/actions/upload-artifact/issues/38\n" > README.md
popd
ls out/editor/
- name: Upload editor bundle