-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
40 lines (31 loc) · 956 Bytes
/
wercker.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
box: node:7
front-build:
steps:
- script:
name: install dependencies with yarn ( front )
cwd: front
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
HOME=$YARN_CACHE yarn --pure-lockfile
- script:
name: install dependencies with yarn ( back )
cwd: back
code: |
export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
HOME=$YARN_CACHE yarn --pure-lockfile
- script:
name: prepare standalone
code: node script/prepare_standalone.js
- script:
name: build standalone
cwd: front
code: yarn run build
front-deploy:
steps:
- script:
name: copy video
code: cp doc/asset/intro.mp4 ./front/dist
- takuma7/gh-pages:
cwd: front
token: $GH_TOKEN
basedir: ./dist