Fix CI artifact double-zip so the plugin installs directly #14
@@ -127,9 +127,16 @@ jobs:
|
|||||||
version="$(sed -nE 's/^[[:space:]]*\*?[[:space:]]*Version:[[:space:]]*([^[:space:]]+).*/\1/p' unsupervised-schedular.php | head -1)"
|
version="$(sed -nE 's/^[[:space:]]*\*?[[:space:]]*Version:[[:space:]]*([^[:space:]]+).*/\1/p' unsupervised-schedular.php | head -1)"
|
||||||
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: unsupervised-schedular-${{ steps.meta.outputs.version }}
|
name: unsupervised-schedular-${{ steps.meta.outputs.version }}
|
||||||
path: dist/*.zip
|
path: artifact/
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user