Update copy and zip to be stricter and rely on cd
All checks were successful
Build & Release WordPress Plugin / build (push) Successful in 34s

This commit is contained in:
j 2025-06-17 16:19:16 +10:00
parent fa0b438a95
commit b430067759

View file

@ -47,10 +47,12 @@ jobs:
# Create a build directory to ensure that we're correctly creating # Create a build directory to ensure that we're correctly creating
# a single child directory in the zip. # a single child directory in the zip.
mkdir -p build mkdir -p build
cp -r ${SOURCE_DIR}/* "build/${PLUGIN_NAME}" cp -r ${SOURCE_DIR} "build/${PLUGIN_NAME}"
# Zip it up for shipping # Zip it up for shipping
zip -r "${PLUGIN_NAME}.zip" "build/${PLUGIN_NAME}" cd build
zip -r "../${PLUGIN_NAME}.zip" "${PLUGIN_NAME}"
cd -
- name: Create Release if not exists - name: Create Release if not exists
run: | run: |