Bump actions/setup-python from 5 to 6 #11
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| branches: [main] | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| PUBLISH_DIR: ./_build/html | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: python3 -m pip install ".[docs]" | |
| - name: Build docs | |
| run: jupyter-book build -W --keep-going . | |
| - name: Install jupyterlite dependencies | |
| run: python3 -m pip install ".[lite]" | |
| - name: Build site for jupyterlite | |
| run: | | |
| mkdir content | |
| find examples -name '*.py' -exec jupytext --to ipynb {} + | |
| find examples -name '*.ipynb' -exec mv {} content ';' | |
| find examples -name '*.ode' -exec cp {} content ';' | |
| cp -r src/zero_mech content/ | |
| jupyter lite build --contents content --output-dir ./_build/html/lite | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ${{ env.PUBLISH_DIR }} |