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