Sekvensdiagram for grunnlegende scenarioer i Skribenten (#670) #65
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 and deploy asciidoc to github pages" | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "docs/**" | |
- ".github/workflows/asciidoctor.yaml" | |
jobs: | |
build_site: | |
name: "build asciidoc for github pages" | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
contents: write | |
defaults: | |
run: | |
shell: bash | |
working-directory: "docs" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.6' | |
- name: Install plantuml | |
run: "sudo gem install asciidoctor-diagram" | |
- name: Install asciidoctor | |
run: "sudo apt-get install asciidoctor" | |
- name: Install graphviz | |
run: "sudo apt-get install graphviz" | |
- name: Compile using asciidoctor | |
run: "asciidoctor -D ${{ github.workspace }}/build -r asciidoctor-diagram index.adoc" | |
- name: Print working directory for test | |
run: "pwd" | |
- name: Upload generated site | |
uses: actions/[email protected] | |
with: | |
name: site | |
path: "${{ github.workspace }}/build" | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
FOLDER: "build" | |
BRANCH: 'gh-pages' | |
COMMIT_MESSAGE: "[CI] Publisere dokumentasjon" |