File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ after_success:
6161 node-pre-gyp package
6262 node-pre-gyp publish
6363 fi
64+ - if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4.1" ]; then
65+ .travis/deploy-docs.sh;
66+ fi
67+
6468notifications :
6569 slack :
6670 secure : KglNSqZiid9YudCwkPFDh+sZfW5BwFlM70y67E4peHwwlbbV1sSBPHcs74ZHP/lqgEZ4hMv4N2NI58oYFD5/1a+tKIQP1TkdIMuq4j2LXheuirA2HDcydOVrsC8kRx5XFGKdVRg/uyX2dlRHcOWFhxrS6yc6IxtxYWlRTD2SmEc=
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+
4+ # delete "nodegit.github.com" folder if it exists
5+ rm -rf " nodegit.github.com" || exit 0;
6+
7+ # clone "nodegit.github.com" repository
8+ git clone " https://github.com/nodegit/nodegit.github.com.git"
9+
10+ # change into "nodegit.github.com" folder
11+ cd " nodegit.github.com"
12+
13+ # install node dependencies
14+ npm install
15+
16+ # link "nodegit" folder
17+ ln -s ../.. generate/nodegit
18+
19+ # generate new docs
20+ node generate
21+
22+ # configure git user information
23+ git config user.name " Travis CI"
24+ git config user.email " noreply@travis-ci.org"
25+
26+ # commit changes
27+ git add .
28+ git commit -m " Deploy to GitHub Pages
29+
30+ see https://github.com/nodegit/nodegit.github.com/commit/${TRAVIS_COMMIT} "
31+
32+ # push to the "nodegit.github.com" repository
33+ git push --quiet " https://${GH_TOKEN} @github.com/nodegit/nodegit.github.com.git" > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments