-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
39 lines (38 loc) · 1.13 KB
/
.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
language: node_js
node_js:
- lts/*
cache:
directories:
- node_modules
install:
- npm install
script:
- npm run build-storybook
after_success:
- git config --global user.name "${U_NAME}"
- git config --global user.email "${U_EMAIL}"
- git clone "https://${GH_TOKEN}@github.com/YolkPie/components-vue.git"
- if [! -d components-vue/storybook-static]; then
- mkdir components-vue/storybook-static
- fi
- cp -rf storybook-static/* components-vue/storybook-static
- cd ./components-vue
- git add .
- git status
- git commit -m 'travis-ci auto build components-vue'
- git push origin master
- git push origin `git subtree split --prefix=storybook-static master`:gh-pages --force
- cd ../
- rm -rf components-vue
- git clone "https://${U_NAME2}:${CO_TOKEN}@e.coding.net/yolkpie/components/components-vue.git"
- if [! -d components-vue/storybook-static]; then
- mkdir components-vue/storybook-static
- fi
- cp -rf storybook-static/* components-vue/storybook-static
- cd ./components-vue
- git add .
- git commit -m 'travis-ci auto build components-vue'
- git push origin master
branches:
only:
- master