Skip to content

Commit a681200

Browse files
travis: run doc script from master on push.
1 parent 6fd7154 commit a681200

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ branches:
77
- master
88
env:
99
global:
10-
- secure: "B1vanjI2TMf+YnmbcF5HWAMNnmT+CFr2EB1CCIcyoWqs2RIBvgiDH0gDR46iUDdfPRSt3Eokaru1fY8ptZDRnrt3oKokWp4ZrRO0x7uUGbkGfdmHHxnOlUA1m9rVhaOBCWl5opfaA8ncWcXwdWZGg7HWpS7EfTNr2dIr7lAC2mU="
10+
- secure: "a9Qx7y7dIWXEdppdmPW5g6CJQpUWUmd3sKWcJPKMfcg+xVHEBhPl9PCt/2jGK1sxstTDiwrVaV1NKpG4qD03UVot2zX28o1mM7JY6rDAl709rvKveegDeC9vo+U/BWid3lq/Impl37X0YYGY+spEcptI6bnvWxa6d7MGPCx3L2c="
1111
- GH_OWNER: GoogleCloudPlatform
1212
- GH_PROJECT_NAME: gcloud-node
1313
script:
1414
- npm run lint
1515
- npm run test
1616
after_success:
17+
- git submodule add -b master-copy https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} master > /dev/null 2>&1
18+
- cd master
19+
- npm run docs
1720
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
1821
- cd site
19-
- if git checkout gh-pages; then git checkout -b gh-pages; fi
22+
- git checkout -b gh-pages
2023
- git rm -r .
2124
- cp -R ../docs/* .
2225
- cp ../docs/.* .
2326
- git add -f .
2427
- git config user.email "[email protected]"
2528
- git config user.name "stephenplusplus"
26-
- git commit -am "building gh-pages [ci skip]"
29+
- git commit -am "build gh-pages from master. [ci skip]"
2730
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1

0 commit comments

Comments
 (0)