Markerer tydelig at denne er utgått, med fixed textbox #4
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 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 |