File tree Expand file tree Collapse file tree 2 files changed +41
-26
lines changed
Expand file tree Collapse file tree 2 files changed +41
-26
lines changed Original file line number Diff line number Diff line change 1+ # language: node_js
2+ # node_js:
3+ # # - lts/*
4+ # - 12
5+ # cache:
6+ # directories:
7+ # - node_modules
8+
9+ # branches:
10+ # only:
11+ # - master
12+
13+ # before_install:
14+ # - export TZ='Asia/Beijing'
15+ # install:
16+ # - npm install
17+
18+ # script:
19+ # - npm run clear
20+ # - npm run build
21+
22+ # after_script:
23+ # - cd ./build
24+ # - git init
25+ # - git config user.name "zhaocchen"
26+ # - git config user.email "[email protected] "27+ # - git add .
28+ # - git commit -m "Travis CI Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
29+ # - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
30+
31+
132language : node_js
233node_js :
3- # - lts/*
4- - 12
5- cache :
6- directories :
7- - node_modules
8-
34+ - ' 10'
935branches :
1036 only :
1137 - master
12-
13- before_install :
14- - export TZ='Asia/Beijing'
15- install :
16- - npm install
17-
38+ cache :
39+ yarn : true
1840script :
19- - npm run clean
20- - npm run build
21-
22- after_script :
23- - cd ./public
24- - git init
25- - git config user.name "zhaocchen"
26- -
git config user.email "[email protected] " 27- - git add .
28- - git commit -m "Travis CI Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
29- - git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
41+ - git config --global user.name "${GH_NAME}"
42+ - git config --global user.email "${GH_EMAIL}"
43+ - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
44+ - yarn && GIT_USER="${GH_NAME}" yarn deploy
Original file line number Diff line number Diff line change 22module . exports = {
33 title : '元气の小岛' ,
44 tagline : '生活明朗 • 万物可爱 ☻ 人间值得 • 未来可期' ,
5- url : 'https://endiliey .github.io' ,
5+ url : 'https://zhaocchen .github.io' ,
66 baseUrl : '/' ,
77 onBrokenLinks : 'throw' ,
88 onBrokenMarkdownLinks : 'warn' ,
99 favicon : 'img/favicon.ico' ,
10- organizationName : 'facebook ' , // Usually your GitHub org/user name.
11- projectName : 'docusaurus ' , // Usually your repo name.
10+ organizationName : 'zhaocchen ' , // Usually your GitHub org/user name.
11+ projectName : 'zhaocchen.github.io ' , // Usually your repo name.
1212 themeConfig : {
1313 navbar : {
1414 title : 'My Site' ,
You can’t perform that action at this time.
0 commit comments