-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
22 lines (20 loc) · 944 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
sudo: required
services:
- docker
jobs:
include:
- stage: "Publish docs"
script:
- mkdir -p output/{ptbr,en}
- docker run --rm -v $TRAVIS_BUILD_DIR:/documents/ -e 'ASCIIDOCTOR_PLUGIN=asciidoctor-diagram,chart-block-macro' -e 'ASCIIDOCTOR_PDF_THEMES_DIR=docs/resources/themes' -e 'ASCIIDOCTOR_PDF_THEME=default' -e 'ASCIIDOCTOR_PDF_FONTS_DIR=docs/resources/fonts' integr8/alpine-asciidoctor-helper pdf docs/index-ptbr.adoc
- docker run --rm -v $TRAVIS_BUILD_DIR:/documents/ -e 'ASCIIDOCTOR_PLUGIN=asciidoctor-diagram,chart-block-macro' integr8/alpine-asciidoctor-helper html docs/index-ptbr.adoc
- mv output/index-ptbr.html output/index.html
- mv output/index-ptbr.pdf output/ptbr/doc.pdf
deploy:
provider: pages
target-branch: gh-pages
skip_cleanup: true
local_dir: output/
github_token: $GH_TOKEN
on:
branch: development