# Copyright (C) 2025 Siemens # # SPDX-License-Identifier: MIT name: Docs on: push: branches: - main pull_request: jobs: docs: name: Build Docs runs-on: ubuntu-24.04 steps: - name: Check out the repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: 3.14 - name: Install dependencies run: | python -m pip install --upgrade pip pip install .[dev] - name: Build HTML docs run: | cd docs make html # build-test only to catch doc building issues - name: Build manpages run: | cd docs make man - name: Upload HTML docs if: github.ref == 'refs/heads/main' uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: docs-html path: docs/build/html publish: name: Publish Docs runs-on: ubuntu-24.04 if: github.ref == 'refs/heads/main' needs: - docs permissions: pages: write id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Download HTML docs uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: docs-html path: docs-html - name: Upload pages artifact uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5 with: path: docs-html - name: Deploy to GitHub Pages uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5