add Global Replay (#143) #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test WIS2 Guide build | |
on: | |
pull_request: | |
paths: | |
- '**.adoc' | |
env: | |
FILE_BASENAME: wis2-guide-DRAFT | |
jobs: | |
build-wis2-guide: | |
name: Test documentation build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y \ | |
&& sudo apt-get install -y pandoc \ | |
&& sudo gem install asciidoctor asciidoctor-pdf | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: build documentation | |
run: | | |
mkdir -p /tmp/wis2-guide/guide/images \ | |
&& cd guide \ | |
&& asciidoctor --trace -o /tmp/wis2-guide/guide/${FILE_BASENAME}.html index.adoc \ | |
&& asciidoctor --trace --backend docbook --out-file - index.adoc | pandoc --from docbook --to docx --output /tmp/wis2-guide/guide/${FILE_BASENAME}.docx \ | |
&& asciidoctor --trace -r asciidoctor-pdf --trace -b pdf -o /tmp/wis2-guide/guide/${FILE_BASENAME}.pdf index.adoc |