File tree 2 files changed +41
-26
lines changed
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
+
1
32
language : node_js
2
33
node_js :
3
- # - lts/*
4
- - 12
5
- cache :
6
- directories :
7
- - node_modules
8
-
34
+ - ' 10'
9
35
branches :
10
36
only :
11
37
- master
12
-
13
- before_install :
14
- - export TZ='Asia/Beijing'
15
- install :
16
- - npm install
17
-
38
+ cache :
39
+ yarn : true
18
40
script :
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 2
2
module . exports = {
3
3
title : '元气の小岛' ,
4
4
tagline : '生活明朗 • 万物可爱 ☻ 人间值得 • 未来可期' ,
5
- url : 'https://endiliey .github.io' ,
5
+ url : 'https://zhaocchen .github.io' ,
6
6
baseUrl : '/' ,
7
7
onBrokenLinks : 'throw' ,
8
8
onBrokenMarkdownLinks : 'warn' ,
9
9
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.
12
12
themeConfig : {
13
13
navbar : {
14
14
title : 'My Site' ,
You can’t perform that action at this time.
0 commit comments