forked from rtCamp/wpveda-book
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
34 lines (26 loc) · 840 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: node
build:
steps:
# - npm-install
# install gitbook itself
- script:
name: install gitbook
code: npm install -g gitbook-cli
# build gitbooks
- script:
name: build wpveda book
code: gitbook install content && gitbook build content
deploy:
steps:
- install-packages:
packages: sshpass rsync
- 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