Merge pull request #138 from archaeogeek/dev #38
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 adocs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
adoc_build-dataset: | |
runs-on: ubuntu-latest | |
name: Asciidoctor conversion, dataset variant | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build datasets variant | |
id: adocbuild-datasets | |
uses: avattathil/asciidoctor-action@master | |
with: | |
program: "asciidoctor -a variant-dataset -a docinfo1 -T templates -E slim 'docs/*.asciidoc' 'docs/*.adoc'" | |
- name: Build services variant | |
id: adocbuild-services | |
uses: avattathil/asciidoctor-action@master | |
with: | |
program: "asciidoctor -a variant-service -a docinfo1 -T templates -E slim 'docs/*.asciidoc' 'docs/*.adoc'" | |
- name: Deploy docs to ghpages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_branch: gh-pages | |
publish_dir: ./docs/ | |
enable_jekyll: true |