Skip to content

148 even more doc updates #12

148 even more doc updates

148 even more doc updates #12

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches: [ "master" ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs mkdocs-material pymdown-extensions
- name: "Build docs"
run: |
make clean document
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
if: >
${{
(github.event_name == 'push') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository)
}}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
with:
preview: ${{ github.event_name == 'pull_request' }}