Skip to content

Commit 62f6b2f

Browse files
committed
fix
1 parent 9715190 commit 62f6b2f

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.travis.yml

+39-39
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
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-
321
language: node_js
332
node_js:
3+
# - lts/*
344
- 12
5+
cache:
6+
directories:
7+
- node_modules
8+
359
branches:
3610
only:
3711
- master
38-
cache:
39-
yarn: true
12+
13+
before_install:
14+
- export TZ='Asia/Beijing'
4015
install:
41-
- yarn
42-
- nvm install 10
16+
- npm install
17+
4318
script:
44-
- git config --global user.name "${GH_NAME}"
45-
- git config --global user.email "${GH_EMAIL}"
46-
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
47-
- yarn && GIT_USER="${GH_NAME}" yarn deploy
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+
32+
# language: node_js
33+
# node_js:
34+
# - 12
35+
# branches:
36+
# only:
37+
# - master
38+
# cache:
39+
# yarn: true
40+
# install:
41+
# - yarn
42+
# - nvm install 10
43+
# script:
44+
# - git config --global user.name "${GH_NAME}"
45+
# - git config --global user.email "${GH_EMAIL}"
46+
# - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
47+
# - yarn && GIT_USER="${GH_NAME}" yarn deploy

0 commit comments

Comments
 (0)