forked from rtCamp/wpveda-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
34 lines (26 loc) · 845 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
# our build should run within a Ruby box
box: wercker/nodejs
build:
steps:
# - npm-install
# install gitbook itself
- script:
name: install gitbook
code: sudo npm install -g gitbook
# build gitbooks
- script:
name: build wpveda book
code: gitbook install content && gitbook build content
deploy:
steps:
- install-packages:
packages: sshpass
- script:
name: deploy books docs to cdn
code: rsync -avz --progress --rsh="sshpass -p $PASS ssh -l USER -o StrictHostKeyChecking=no" content/_book/* $USER@$HOST:/www/
after-steps:
- script:
name: purge cdn
code: curl --data "cdn_id=$CDNID&login=$APIUSER&passwd=$APIPASS" https://client.cdn77.com/api/v2.0/data/purge-all
- 1syo/[email protected]:
token: $GITTER_TOKEN