-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.15 KB
/
adocs-build-and-publish-develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build adocs develop and publish to Github pages
on:
push:
branches:
- develop
paths:
- docs/**
workflow_dispatch:
jobs:
adoc_build:
runs-on: ubuntu-latest
name: asciidoctor build
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Update submodules to latest main
run: |
git submodule foreach --recursive git fetch origin
git submodule foreach --recursive git checkout origin/main
- name: Build html
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -o index.html -a lang=nb docs/main.adoc"
- name: Build pdf
id: adocbuild_pdf
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor-pdf -D docs -o files/forvaltningsstandard-begrepsbeskrivelser-utfases.pdf -a lang=nb docs/main.adoc"
continue-on-error: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs