Update release CI #56
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 documentation | |
on: | |
# Runs on pushes targeting the default branch | |
pull_request: | |
branches: | |
- "release" | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: ghcr.io/fenics/dolfinx/dolfinx:stable | |
env: | |
DEB_PYTHON_INSTALL_LAYOUT: deb_system | |
PUBLISH_DIR: ./_build/html | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: python3 -m pip install ".[docs]" | |
- name: Build docs | |
run: jupyter book build -W . | |
- name: Upload documentation | |
uses: actions/upload-artifact@v4 | |
with: | |
name: documentation | |
path: ./_build/html | |
if-no-files-found: error |