File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,24 @@ branches:
7
7
- master
8
8
env :
9
9
global :
10
- - secure : " B1vanjI2TMf+YnmbcF5HWAMNnmT+CFr2EB1CCIcyoWqs2RIBvgiDH0gDR46iUDdfPRSt3Eokaru1fY8ptZDRnrt3oKokWp4ZrRO0x7uUGbkGfdmHHxnOlUA1m9rVhaOBCWl5opfaA8ncWcXwdWZGg7HWpS7EfTNr2dIr7lAC2mU ="
10
+ - secure : " a9Qx7y7dIWXEdppdmPW5g6CJQpUWUmd3sKWcJPKMfcg+xVHEBhPl9PCt/2jGK1sxstTDiwrVaV1NKpG4qD03UVot2zX28o1mM7JY6rDAl709rvKveegDeC9vo+U/BWid3lq/Impl37X0YYGY+spEcptI6bnvWxa6d7MGPCx3L2c ="
11
11
- GH_OWNER : GoogleCloudPlatform
12
12
- GH_PROJECT_NAME : gcloud-node
13
13
script :
14
14
- npm run lint
15
15
- npm run test
16
16
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
17
20
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
18
21
- cd site
19
- - if git checkout gh-pages; then git checkout - b gh-pages; fi
22
+ - git checkout - b gh-pages
20
23
- git rm -r .
21
24
- cp -R ../docs/* .
22
25
- cp ../docs/.* .
23
26
- git add -f .
24
27
-
git config user.email "[email protected] "
25
28
- 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]"
27
30
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments