4 [[ $TRAVIS_SECURE_ENV_VARS == "true" ]] || { echo "No github key avaliable, aborting publishing"; exit 0; }
6 ID_REF="$(git rev-parse --short HEAD)"
8 git clone "https://${GH_KEY}@${GH_REF}" ./docs-out -b ${GH_PAGES_BRANCH} --single-branch --depth=1
12 # clear out everything
17 cp ../docs-built/* . -R
21 # inside this git repo we'll pretend to be a new user
22 git config user.name "Travis CI"
23 git config user.email "travisci@users.noreply.github.com"
25 # The first and only commit to this new Git repo contains all the
26 # files present with the commit message "Deploy to GitHub Pages".
27 git commit -m "docs(*): new deploy (angular-ui/ui-select@${ID_REF})"
30 git push origin --quiet