-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
38 lines (36 loc) · 847 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
branches:
only:
- master
script-anchors:
- &script-publish
- cd $TRAVIS_BUILD_DIR
- yarn global add gitbook-cli
- make pdf
- make html
matrix:
include:
- os: linux
language: node_js
node_js: "10"
addons:
apt:
packages:
- calibre
- calibre-bin
- libxss1
script: *script-publish
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
name: Build $(date +'%d.%m.%Y %R')
file: $TRAVIS_BUILD_DIR/dist/JUCE-Cookbook.pdf
skip_cleanup: true
on:
branch: master
- provider: pages
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/dist/html
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master