Merge pull request 'Fix CI artifact double-zip so the plugin installs directly' (#14) from fix/ci-artifact-double-zip into main
CI / Coding Standards (push) Successful in 51s
CI / PHPStan (push) Successful in 1m6s
CI / Tests (PHP 8.1) (push) Successful in 51s
CI / Tests (PHP 8.2) (push) Successful in 48s
CI / Tests (PHP 8.3) (push) Successful in 46s
CI / No Debug Code (push) Successful in 3s
CI / Build Plugin Zip (push) Successful in 42s
CI / Coding Standards (push) Successful in 51s
CI / PHPStan (push) Successful in 1m6s
CI / Tests (PHP 8.1) (push) Successful in 51s
CI / Tests (PHP 8.2) (push) Successful in 48s
CI / Tests (PHP 8.3) (push) Successful in 46s
CI / No Debug Code (push) Successful in 3s
CI / Build Plugin Zip (push) Successful in 42s
Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user