From 20113197504ec03ced1da586ce530eab9863a811 Mon Sep 17 00:00:00 2001 From: James Griffin Date: Fri, 5 Jun 2026 12:31:29 -0300 Subject: [PATCH] Fix CI artifact so the downloaded plugin installs directly Gitea/Actions re-zips artifacts on download, so uploading the built plugin zip produced a double-wrapped archive (a zip containing a zip). WordPress then reported "No valid plugins were found" because the upload had no plugin folder/header at its top level. Unpack the built zip and upload the resulting plugin folder instead, so the downloaded artifact's top level is unsupervised-schedular/ and installs directly via Plugins -> Add New -> Upload. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cf776ba..565a9d3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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