nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / ui-select / deploy-docs.sh
1 #!/bin/bash
2 set -e 
3
4 [[ $TRAVIS_SECURE_ENV_VARS == "true" ]] || { echo "No github key avaliable, aborting publishing"; exit 0; }
5
6 ID_REF="$(git rev-parse --short HEAD)"
7
8 git clone "https://${GH_KEY}@${GH_REF}" ./docs-out -b ${GH_PAGES_BRANCH} --single-branch --depth=1
9
10 cd docs-out
11
12 # clear out everything
13 git rm -rf .
14 git clean -fxd
15
16 # get new content
17 cp ../docs-built/* . -R
18
19 git add .
20
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"
24
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})"
28
29
30 git push origin --quiet 
31 #> /dev/null 2>&1