forked from tidb-incubator/tidb-in-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (43 loc) · 897 Bytes
/
.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
40
41
42
43
44
45
46
47
48
sudo: false
dist: xenial
language: node_js
node_js:
- 12
cache: npm
addons:
apt:
packages:
- calibre
- libfontconfig
# Japanese
- language-pack-ja
- japan*
# Chinese
- language-pack-zh*
- chinese*
# Korean
- language-pack-ko
- korean*
# Fonts
- fonts-wqy-zenhei
- fonts-ipafont-mincho
- fonts-ipafont-gothic
- fonts-unfonts-core
before_install:
- npm install -g gitbook-cli [email protected]
before_script:
- npm install
- export PATH=$(npm bin):$PATH
- gitbook install
script:
- gitbook build . --gitbook=3.2.3
- gitbook pdf . --gitbook=3.2.3
- mv book.pdf _book/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: _book
on:
branch: master