Created
March 25, 2015 23:52
-
-
Save bigdawggi/a4eb094faa213c3a1297 to your computer and use it in GitHub Desktop.
Codeship Custom Deploy Script for WPEngine
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
# You must set up two environment variables: | |
# repoSlug = slug for WP Engine repository | |
# themeDir = path from the top of the repository, to the theme directory | |
git remote add production [email protected]:production/${repoSlug}.git | |
git remote add staging [email protected]:staging/${repoSlug}.git | |
cd ${themeDir} | |
npm install | |
npm install -g bower | |
bower install | |
gulp build | |
git config --global user.email "[email protected]" | |
git config --global user.name "Codeship Deploy Bot" | |
git config push.default current | |
git checkout -b deploy | |
git add public | |
git commit -m "DEPLOYMENT - public folder build" | |
git push -f staging deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment