set -e if [[ "false" != "$TRAVIS_PULL_REQUEST" ]]; then echo "Not deploying pull requests." exit fi if [[ "master" != "$TRAVIS_BRANCH" ]]; then echo "Not on the 'master' branch." exit fi rm -rf .git rm -r .gitignore echo ".bowerrc .editorconfig .travis.yml .gitignore .babelrc ./images webpack.config.js bin gulpfile.js .prettierignore config.js node_modules content package.json svgpack tmp src config.toml yarn.lock renovate.json !/exampleSite/config.toml !/exampleSite/content !/exampleSite/static" > .gitignore git init git config user.name "Travis CI" git config user.email "travis@example.com" git add . git commit --quiet -m "Deploy from travis" git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:release > /dev/null 2>&1