Skip to content

Commit e5aeb80

Browse files
committed
add release key
1 parent 4b21e9e commit e5aeb80

File tree

1 file changed

+44
-50
lines changed

1 file changed

+44
-50
lines changed

.travis.yml

Lines changed: 44 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,72 +3,66 @@ sudo: required
33
language: node_js
44

55
services:
6-
- docker
6+
- docker
77

88
node_js:
9-
- "stable"
9+
- stable
1010

1111
before_install:
12-
- shopt -s expand_aliases
13-
- docker pull billryan/gitbook:latest
14-
- docker pull billryan/gitbook:zh-hans
15-
- docker pull billryan/gitbook:zh-hant
16-
- alias gitbook_en='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:latest gitbook'
17-
- alias gitbook_zh_hans='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:zh-hans gitbook'
18-
- alias gitbook_zh_hant='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:zh-hant gitbook'
12+
- shopt -s expand_aliases
13+
- docker pull billryan/gitbook:latest
14+
- docker pull billryan/gitbook:zh-hans
15+
- docker pull billryan/gitbook:zh-hant
16+
- alias gitbook_en='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:latest
17+
gitbook'
18+
- alias gitbook_zh_hans='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:zh-hans
19+
gitbook'
20+
- alias gitbook_zh_hant='docker run --rm -v "$PWD":/gitbook -p 4000:4000 billryan/gitbook:zh-hant
21+
gitbook'
1922

2023
install:
21-
# Install GitBook dependencies
22-
- echo "install gitbook dependencies..."
23-
- gitbook_en install
24+
- echo "install gitbook dependencies..."
25+
- gitbook_en install
2426

2527
before_script:
26-
- cp LANGS.md LANGS.md.bak
28+
- cp LANGS.md LANGS.md.bak
2729

2830
script:
29-
- echo "build English ebook"
30-
- sed '/\(en\/\)/! d' LANGS.md.bak > LANGS.md
31-
- gitbook_en pdf .
32-
- gitbook_en epub .
33-
- gitbook_en mobi .
34-
35-
- echo "build Simplified Chinese ebook"
36-
- sed '/\(zh-hans\/\)/! d' LANGS.md.bak > LANGS.md
37-
- gitbook_zh_hans pdf .
38-
- gitbook_zh_hans epub .
39-
- gitbook_zh_hans mobi .
40-
41-
- echo "build Traditional Chinese ebook"
42-
- sed '/\(zh-tw\/\)/! d' LANGS.md.bak > LANGS.md
43-
- gitbook_zh_hant pdf .
44-
- gitbook_zh_hant epub .
45-
- gitbook_zh_hant mobi .
46-
47-
- echo "build HTML pages"
48-
- cp LANGS.md.bak LANGS.md
49-
- gitbook_en build .
50-
- ls -alh
31+
- echo "build English ebook"
32+
- sed '/\(en\/\)/! d' LANGS.md.bak > LANGS.md
33+
- gitbook_en pdf .
34+
- gitbook_en epub .
35+
- gitbook_en mobi .
36+
- echo "build Simplified Chinese ebook"
37+
- sed '/\(zh-hans\/\)/! d' LANGS.md.bak > LANGS.md
38+
- gitbook_zh_hans pdf .
39+
- gitbook_zh_hans epub .
40+
- gitbook_zh_hans mobi .
41+
- echo "build Traditional Chinese ebook"
42+
- sed '/\(zh-tw\/\)/! d' LANGS.md.bak > LANGS.md
43+
- gitbook_zh_hant pdf .
44+
- gitbook_zh_hant epub .
45+
- gitbook_zh_hant mobi .
46+
- echo "build HTML pages"
47+
- cp LANGS.md.bak LANGS.md
48+
- gitbook_en build .
49+
- ls -alh
5150

5251
before_deploy:
53-
- tar czvf blog.tar.gz _book/
52+
- tar czvf blog.tar.gz _book/
5453

5554
deploy:
56-
- provider: releases
57-
api_key:
58-
secure: QU4B9CIPUdelYJKnS72SUjOY/9/w9+m536RX8Ex4PsKYMJHEIW7rkbP16ZAvMDoqiQkfPwpQSE8tFOBxMmkgGIgWY86o0xr022ak0iGICFCkjedEfNkKBENjOA8JoMlCx+QRyGcRJKuHBAy8WQU+PKykJDzJzadGNs0ud/+P75k=
59-
file:
60-
- blog.tar.gz
61-
- book_en.pdf
62-
- book_zh-hans.pdf
63-
- book_zh-hant.pdf
64-
skip_cleanup: true
65-
on:
66-
branch: master
55+
provider: releases
56+
api_key:
57+
secure: B/dqY0sC9I0Uu5o3HVHouX/mfLTUH/dt16IsBdm+sZQW+/YeTUTGwpx+Vl5lXpMhUoxrh60Qxt0KbnqvPqAxsPXGMH2Mhl1E5lgvMYViOGQyx9JJuuba+GWOzD+r2+XOUsqBzOCUhvC7iZbuGiWYvV2+4noAmAoKa1pO1j2yxiI=
58+
file: book_*
59+
skip_cleanup: true
60+
on:
61+
repo: billryan/algorithm-exercise
6762

6863
after_success:
69-
- ls -lh
64+
- ls -lh
7065

71-
# whitelist
7266
branches:
7367
only:
74-
- master
68+
- master

0 commit comments

Comments
 (0)