Skip to content

Refactoring of build management #181

Refactoring of build management

Refactoring of build management #181

Workflow file for this run

name: documentation
on: [push, pull_request, workflow_dispatch]
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/set-versions
- uses: julia-actions/setup-julia@v2
with:
version: ${{env.VERSION_JULIA}}
- uses: julia-actions/cache@v2
- uses: astral-sh/setup-uv@v5
with:
version: ${{env.VERSION_UV}}
- name: Sphinx build
run: |
uv run sphinx-build docs docs/_build
# TODO: Re-enable after merge
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
# with:
# publish_branch: gh-pages
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: docs/_build/
# force_orphan: true