Skip to content

Switch adios2 test to release #326

Switch adios2 test to release

Switch adios2 test to release #326

Workflow file for this run

name: Build documentation
on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
env:
PUBLISH_DIR: ./_build/html
DEB_PYTHON_INSTALL_LAYOUT: deb_system
ARTIFACT_NAME: "docs"
jobs:
build-docs:
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system
runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dolfinx:nightly
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v4
- name: Update pip
run: python3 -m pip install --upgrade pip setuptools
- name: Install dependencies
run: python3 -m pip install -e ".[docs]"
- name: Build docs
run: jupyter book build -W .
- name: Upload documentation as artifact
uses: actions/upload-artifact@v4
if: github.event_name != 'workflow_call'
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.PUBLISH_DIR }}
if-no-files-found: error