Skip to content

chore: use sectlinks instead of sectanchors to prevent accessibility … #3

chore: use sectlinks instead of sectanchors to prevent accessibility …

chore: use sectlinks instead of sectanchors to prevent accessibility … #3

name: build adocs and publish v1 to production (legacy)
on:
push:
branches:
- v1
paths:
- docs/**
workflow_dispatch:
jobs:
adoc_build:
runs-on: ubuntu-latest
name: asciidoctor build
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: v1
- name: Build html
id: adocbuild
uses: avattathil/asciidoctor-action@master
with:
program: "asciidoctor -D docs -o index.html -a lang=nb docs/main.adoc"
- name: Build pdf
id: adocbuild_pdf
uses: avattathil/asciidoctor-action@master
with:
program: "asciidoctor-pdf -D docs -o files/kvalitet-pa-datasett.pdf -a lang=nb docs/main.adoc"
continue-on-error: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: html
publish_dir: ./docs