-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 912 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: node_js
node_js:
# - lts/*
- 12
cache:
directories:
- node_modules
branches:
only:
- master
before_install:
- export TZ='Asia/Beijing'
install:
- npm install
script:
- npm run clear
- npm run build
after_script:
- cd ./build
- git init
- git config user.name "zhaocchen"
- git config user.email "[email protected]"
- git add .
- git commit -m "Travis CI Auto Builder at $(date +'%Y-%m-%d %H:%M:%S')"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
# language: node_js
# node_js:
# - 12
# branches:
# only:
# - master
# cache:
# yarn: true
# install:
# - yarn
# - nvm install 10
# script:
# - git config --global user.name "${GH_NAME}"
# - git config --global user.email "${GH_EMAIL}"
# - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
# - yarn && GIT_USER="${GH_NAME}" yarn deploy