Merge pull request #229 from ternaustralia/jun/add-platformType #28
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: Build and deploy specification document to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
env: | |
PDF_FILENAME: spec.pdf | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1.1" | |
- name: Install asciidoctor and asciidoctor-pdf | |
run: gem install asciidoctor asciidoctor-pdf | |
- name: Build asciidoc files - HTML | |
run: asciidoctor --trace -a stylesheet=./static/styles.css -o ./build/index.html ./spec/source/index.adoc | |
- name: Build asciidoc files - PDF | |
run: asciidoctor --trace -a stylesheet=./static/styles.css -r asciidoctor-pdf -b pdf -o ./build/${{ env.PDF_FILENAME }} ./spec/source/index.adoc | |
- name: Copy RDF Turtle files in docs/ to build/ directory, making them available online via GitHub Pages. | |
run: | | |
for file in docs/*.ttl | |
do cp "$file" "build/$(basename -- $file)" | |
done | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |