-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (31 loc) · 755 Bytes
/
Copy path.travis.yml
File metadata and controls
36 lines (31 loc) · 755 Bytes
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
language: node_js
node_js:
- "7"
cache:
directories:
- "node_modules"
install:
- npm install
stages:
# - lint
- name: gh_pages
if: branch = master
jobs:
include:
# - stage: lint
# script: npm run lint
- stage: gh_pages
script: npm run build
after_script:
- cd ./example-dist
- git init
- git remote add origin "https://${GH_TOKEN}@${GH_REF}"
- git checkout -b gh-pages
- git config user.name "leezng"
- git config user.email "im.leezng@gmail.com"
- git add .
- git commit -m "update example page"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" gh-pages:gh-pages
env:
global:
- GH_REF: github.com/leezng/coding.git