-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactore to new publishing service
- Loading branch information
Showing
6 changed files
with
137 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: build adocs and publish develop to github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
paths: | ||
- docs/** | ||
|
||
jobs: | ||
adoc_build: | ||
runs-on: ubuntu-18.04 | ||
name: asciidoctor build | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- 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/skos-ap-no-begrep.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_dir: ./docs |
52 changes: 52 additions & 0 deletions
52
.github/workflows/adocs-build-and-publish-v1-production.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: build adocs and publish v1 to production | ||
|
||
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@v2 | ||
|
||
- 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/skos-ap-no-begrep.pdf -a lang=nb docs/main.adoc" | ||
continue-on-error: true | ||
|
||
- name: Upload rdf to static-rdf-server | ||
uses: Informasjonsforvaltning/upload-files-to-static-rdf-server-action@v3.1.0 | ||
id: upload-rdf | ||
with: | ||
ontology-type: "specification" | ||
ontology: "skos-ap-no-begrep" | ||
host: "https://fellesdatakatalog.digdir.no" | ||
api-key: ${{ secrets.STATIC_RDF_SERVER_API_KEY }} | ||
files: | | ||
docs/index.html text/html nb | ||
docs/files/skos-ap-no-begrep.pdf application/pdf nb files/skos-ap-no-begrep.pdf | ||
docs/files/Mal-tilbakemeldinger.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document nb files/Mal-tilbakemeldinger.docx | ||
docs/images/Digdir.png image/png nb images/Digdir.png | ||
docs/images/RDF-eksempel-assosiativrelasjon.png image/png nb images/RDF-eksempel-assosiativrelasjon.png | ||
docs/images/RDF-eksempel-definisjon-1.png image/png nb images/RDF-eksempel-definisjon-1.png | ||
docs/images/RDF-eksempel-definisjon-2.png image/png nb images/RDF-eksempel-definisjon-2.png | ||
docs/images/RDF-eksempel-partitivrelasjon.png image/png nb images/RDF-eksempel-partitivrelasjon.png | ||
docs/images/SKOS-AP-NO-Begrep-kun-med-begrepsrelasjoner.png image/png nb images/SKOS-AP-NO-Begrep-kun-med-begrepsrelasjoner.png | ||
docs/images/SKOS-AP-NO-Begrep-kun-obligatoriske.png image/png nb images/SKOS-AP-NO-Begrep-kun-obligatoriske.png | ||
docs/images/SKOS-AP-NO-Begrep-uten-relasjoner.png image/png nb images/SKOS-AP-NO-Begrep-uten-relasjoner.png |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: build adocs and publish v1 to staging | ||
|
||
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@v2 | ||
|
||
- 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/skos-ap-no-begrep.pdf -a lang=nb docs/main.adoc" | ||
continue-on-error: true | ||
|
||
- name: Upload rdf to static-rdf-server | ||
uses: Informasjonsforvaltning/upload-files-to-static-rdf-server-action@v3.1.0 | ||
id: upload-rdf | ||
with: | ||
ontology-type: "specification" | ||
ontology: "skos-ap-no-begrep" | ||
host: "https://staging.fellesdatakatalog.digdir.no" | ||
api-key: ${{ secrets.STATIC_RDF_SERVER_API_KEY_STAGING }} | ||
files: | | ||
docs/index.html text/html nb | ||
docs/files/skos-ap-no-begrep.pdf application/pdf nb files/skos-ap-no-begrep.pdf | ||
docs/files/Mal-tilbakemeldinger.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document nb files/Mal-tilbakemeldinger.docx | ||
docs/images/Digdir.png image/png nb images/Digdir.png | ||
docs/images/RDF-eksempel-assosiativrelasjon.png image/png nb images/RDF-eksempel-assosiativrelasjon.png | ||
docs/images/RDF-eksempel-definisjon-1.png image/png nb images/RDF-eksempel-definisjon-1.png | ||
docs/images/RDF-eksempel-definisjon-2.png image/png nb images/RDF-eksempel-definisjon-2.png | ||
docs/images/RDF-eksempel-partitivrelasjon.png image/png nb images/RDF-eksempel-partitivrelasjon.png | ||
docs/images/SKOS-AP-NO-Begrep-kun-med-begrepsrelasjoner.png image/png nb images/SKOS-AP-NO-Begrep-kun-med-begrepsrelasjoner.png | ||
docs/images/SKOS-AP-NO-Begrep-kun-obligatoriske.png image/png nb images/SKOS-AP-NO-Begrep-kun-obligatoriske.png | ||
docs/images/SKOS-AP-NO-Begrep-uten-relasjoner.png image/png nb images/SKOS-AP-NO-Begrep-uten-relasjoner.png |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.