Fix CI artifact double-zip so the plugin installs directly #14

Merged
thatguygriff merged 1 commits from fix/ci-artifact-double-zip into main 2026-06-05 15:36:41 +00:00
Showing only changes of commit 2011319750 - Show all commits
+8 -1
View File
@@ -127,9 +127,16 @@ jobs:
version="$(sed -nE 's/^[[:space:]]*\*?[[:space:]]*Version:[[:space:]]*([^[:space:]]+).*/\1/p' unsupervised-schedular.php | head -1)"
echo "version=${version}" >> "$GITHUB_OUTPUT"
# Gitea/Actions re-zips artifacts on download. Upload the unpacked plugin
# folder (not the built zip) so the downloaded archive's top level is
# unsupervised-schedular/ and installs directly in WordPress. Uploading
# the zip instead double-wraps it ("No valid plugins were found").
- name: Unpack plugin for artifact
run: unzip -q "dist/unsupervised-schedular-${{ steps.meta.outputs.version }}.zip" -d artifact
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: unsupervised-schedular-${{ steps.meta.outputs.version }}
path: dist/*.zip
path: artifact/
if-no-files-found: error