Skip to content

build adocs

build adocs #58

Workflow file for this run

name: build adocs
on: workflow_dispatch
jobs:
adoc_build:
runs-on: ubuntu-latest
name: build docs
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build index page
id: adocbuild_index
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css -a linkcss=true docs/index.adoc -o docs.html"
- name: Build recipes page
id: adocbuild_recipe
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css docs/recipes.adoc -o recipes/recipes.html"
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs
destination_dir: ./docs
exclude_assets: '*.adoc,build.sh,lib/,recipes/*.adoc'
keep_files: true