Skip to content

Commit a808f0d

Browse files
committed
fix yml
1 parent de94aa4 commit a808f0d

File tree

2 files changed

+41
-26
lines changed

2 files changed

+41
-26
lines changed

.travis.yml

+38-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,44 @@
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+
132
language: node_js
233
node_js:
3-
# - lts/*
4-
- 12
5-
cache:
6-
directories:
7-
- node_modules
8-
34+
- '10'
935
branches:
1036
only:
1137
- master
12-
13-
before_install:
14-
- export TZ='Asia/Beijing'
15-
install:
16-
- npm install
17-
38+
cache:
39+
yarn: true
1840
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

docusaurus.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
module.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',

0 commit comments

Comments
 (0)