This commit is contained in:
Albert Juhé Lluveras 2021-11-28 19:37:26 +01:00 committed by GitHub
parent d9bf1ba94c
commit 76f2ff32d5
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,10 @@ mkdir zip-file
mkdir zip-file/build
sh "$SOURCE_PATH/bin/copy-plugin-files.sh" "$SOURCE_PATH" "$SOURCE_PATH/zip-file"
cd "$(pwd)/zip-file"
if [ $TYPE = 'DEV' ]; then
touch blocks.ini
printf 'woocommerce_blocks_phase = 3\nwoocommerce_blocks_env = development' > blocks.ini
fi
zip -r ../woocommerce-gutenberg-products-block.zip ./
cd ..
rm -r zip-file