Skip to content

Merge pull request #31 from softwarepub/add-example-policies-to-docs #8

Merge pull request #31 from softwarepub/add-example-policies-to-docs

Merge pull request #31 from softwarepub/add-example-policies-to-docs #8

Workflow file for this run

# SPDX-FileCopyrightText: 2025 Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor: David Pape
name: documentation
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Package
run: |
python -m pip install .[docs]
- name: Build Documentation
run: |
task docs-build
- name: Deploy to GitHub Pages Branch
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/
force_orphan: true