# 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 git@git.wpengine.com:production/${repoSlug}.git
git remote add staging git@git.wpengine.com:staging/${repoSlug}.git
cd ${themeDir}
npm install
npm install -g bower
bower install
gulp build
git config --global user.email "codeship-deploy-bot@example.com"
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