generated from Informasjonsforvaltning/specification-template
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 993 Bytes
/
adocs-build-v1-legacy.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
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/spesifikasjon-for-beskrivelse-av-formal-og-hjemmel.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