forked from redhat-documentation/supplementary-style-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (23 loc) · 732 Bytes
/
Copy path.travis.yml
File metadata and controls
30 lines (23 loc) · 732 Bytes
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
sudo: required
branches: # source branch
only:
- master # Name of the branch from which to publish36
services:
- docker
before_install:
- mkdir -p output
- docker pull asciidoctor/docker-asciidoctor
script:
- docker run -v $TRAVIS_BUILD_DIR:/documents/ --name asciidoc-to-html asciidoctor/docker-asciidoctor asciidoctor --destination-dir=/documents/output --out-file=index.html supplementary_style_guide/master.adoc
- cp -r supplementary_style_guide/images/ output/
after_error:
- docker logs asciidoc-to-html
after_failure:
- docker logs asciidoc-to-html
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
local_dir: output
on:
branch: master