Lines Matching +full:gh +full:- +full:pages
2 set -x
10 # - Packages doxygen graphviz must be installed.
11 # - An gh-pages branch should already exist. See below for mor info on how to
12 # create a gh-pages branch.
15 # - GH_DOC_TOKEN : Secure token to the github repository.
18 # the gh-pages branch of a repository specified by $TRAVIS_REPO_SLUG
19 # Before this script is used there should already be a gh-pages branch in the
26 ##### Setup this script and get the current gh-pages branch.
28 GH_REPO_NAME=$(echo $TRAVIS_REPO_SLUG | awk -F/ '{print $2}')
31 set -e
36 if [ ! -d "html" ] || [ ! -f "./html/index.html" ]; then
43 if [ -z "${TRAVIS_TAG}" ] ; then
49 # Get the current gh-pages branch
50 git clone -b gh-pages https://git@github.com/$TRAVIS_REPO_SLUG
53 # Remove everything currently in the gh-pages branch.
55 # stayed the same and will only update the changed files. So the gh-pages branch
58 rm -rf *
61 cp -a ../html/* ./
65 git config --global push.default simple
71 # to be seen on the gh-pages site. Therefore creating an empty .nojekyll file.
74 if [ ! -f ".nojekyll" ] ; then
79 ##### Upload the documentation to the gh-pages branch of the repository. #####
81 echo 'Uploading documentation to the gh-pages branch...'
83 # gh-pages branch.
87 git add --all
91 git commit -m "Deploy autogenerated docs for ${GH_REPO_NAME} v@LIBIIO_VERSION_MAJOR@.@LIBIIO_VERSIO…
93 # Force push to the remote gh-pages branch.
96 git push --force "https://${GH_DOC_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" > /dev/null 2>&1