Skip to content

Instantly share code, notes, and snippets.

@dainelmawer
Last active August 31, 2017 05:55
Show Gist options
  • Save dainelmawer/f655bb36d565e0cdb47a53ecced05024 to your computer and use it in GitHub Desktop.
Save dainelmawer/f655bb36d565e0cdb47a53ecced05024 to your computer and use it in GitHub Desktop.
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