Last active
August 31, 2017 05:55
-
-
Save dainelmawer/f655bb36d565e0cdb47a53ecced05024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir "${WORKSPACE}"/tmp | |
cd "${WORKSPACE}" | |
rm -rf .git | |
if [ -f "composer.json" ]; then | |
composer install | |
fi | |
cd wp-content/themes/wpsa | |
pwd | |
if [ -f "package.json" ]; then | |
npm install | |
fi | |
if [ -f "Gruntfile.js" ]; then | |
grunt build | |
fi | |
if [ -d "release" ]; then | |
unzip release/wpsa.zip -d "${WORKSPACE}"/tmp | |
rm -rf ./* | |
rsync -rtlpP "${WORKSPACE}"/tmp/wpsa/* . | |
pwd | |
fi | |
cd "${WORKSPACE}" | |
rsync -rtlpP ./ [email protected]:/var/www/html/wpsa.com/public_html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment