Create dev packages with a blocks.ini file (https://github.com/woocommerce/woocommerce-blocks/pull/5261)
This commit is contained in:
parent
d9bf1ba94c
commit
76f2ff32d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue