build adocs and publish v2 to staging #2
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 v2 to staging | |
on: | |
push: | |
branches: | |
- v2 | |
paths: | |
- docs/** | |
workflow_dispatch: | |
jobs: | |
adoc_build: | |
runs-on: ubuntu-latest | |
name: asciidoctor build | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: v2 | |
- 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: Upload rdf to static-rdf-server | |
uses: Informasjonsforvaltning/[email protected] | |
id: upload-rdf | |
with: | |
ontology-type: "specification" | |
ontology: "dcat-ap-no" | |
version: "v2.2" | |
host: "https://staging.fellesdatakatalog.digdir.no" | |
api-key: ${{ secrets.STATIC_RDF_SERVER_API_KEY_STAGING }} | |
files: | | |
docs/index.html text/html nb | |
docs/files/dcat-ap-no.pdf application/pdf nb files/dcat-ap-no.pdf | |
docs/files/DCAT-AP-NO2_20210903.eap application/octet-stream nb files/DCAT-AP-NO2_20210903.eap | |
docs/images/digitaliseringsdirektoratet.png image/png nb images/digitaliseringsdirektoratet.png | |
docs/images/DCAT-AP-NO2_20210903.png image/png nb images/DCAT-AP-NO2_20210903.png |