ci: add dev deploy command
This commit is contained in:
parent
e5c13dd870
commit
3518030c60
3 changed files with 17 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# TODO: Add transpilation to PHP 7.4
|
||||
|
||||
echo "Building Plugin..."
|
||||
|
||||
# Moves everything including the style sheets over to `dist/`
|
||||
|
@ -33,8 +35,8 @@ rm -r dist/*/{js,css}/*[^\.min].{js,css}
|
|||
echo "Minification complete."
|
||||
|
||||
if [[ $1 == "-v" ]]; then
|
||||
rm -rf ../VVV/www/wordpress-one/public_html/wp-content/plugins/footnotes
|
||||
mv dist footnotes && mv footnotes ../VVV/www/wordpress-one/public_html/wp-content/plugins
|
||||
rm -rf ../VVV/www/wordpress-two/public_html/wp-content/plugins/footnotes
|
||||
mv dist footnotes && mv footnotes ../VVV/www/wordpress-two/public_html/wp-content/plugins
|
||||
fi
|
||||
|
||||
echo "Build complete."
|
||||
|
|
Reference in a new issue