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."
|
||||
|
|
11
_tools/deploy-dev.sh
Executable file
11
_tools/deploy-dev.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "-v" ]]; then
|
||||
echo "Deploying to VVV site #1"
|
||||
rm -rf ../VVV/www/wordpress-one/public_html/wp-content/plugins/footnotes
|
||||
cp -r src footnotes && mv footnotes ../VVV/www/wordpress-one/public_html/wp-content/plugins
|
||||
#rm -rf ./footnotes
|
||||
fi
|
||||
|
||||
echo "Deploy complete."
|
||||
exit 0
|
|
@ -6,6 +6,8 @@
|
|||
"cm": "npm run cz",
|
||||
"release": "./_tools/release.sh",
|
||||
"release:commit": "composer run release -- -c",
|
||||
"deploy": "composer run build -- -v",
|
||||
"deploy:dev": "./_tools/deploy-dev.sh -v",
|
||||
"build": "./_tools/build.sh",
|
||||
"lint": "composer run lint:php; npm run lint",
|
||||
"lint:fix": "composer run lint:php:fix; npm run lint:fix",
|
||||
|
|
Reference in a new issue