Merge pull request #214 from gramian/main #448
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 | |
jobs: | |
adoc_build: | |
runs-on: ubuntu-22.04 | |
name: asciidoctor -D docs --backend=html5 -o index.html -a toc2 docs/index.adoc | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get build container | |
id: adocbuild | |
uses: tonynv/asciidoctor-action@master | |
with: | |
program: "asciidoctor -D docs --backend=html5 -o index.html src/main/asciidoc/index.adoc" | |
- name: Print execution time | |
run: echo "Time ${{ steps.adocbuild.outputs.time }}" | |
- name: Deploy docs to ghpages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_branch: gh-pages | |
publish_dir: ./ |