Skip to content

Bump actions/upload-artifact from 3 to 4 #76

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #76

Workflow file for this run

name: Build docs and check links
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install Ubuntu packages
run: |
PACKAGES=(
pandoc
)
sudo apt-get install --no-install-recommends ${PACKAGES[@]}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Double-check Python version
run: |
python --version
- name: Install docs dependencies
run: |
python -m pip install -r doc/requirements.txt
- name: Build HTML
run: |
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/html/ -b html
- name: Check links
run: |
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/linkcheck/ -b linkcheck
- name: Upload linkcheck results
uses: actions/upload-artifact@v4
if: ${{ success() || failure() }}
with:
name: linkcheck
path: _build/linkcheck/output.*