add PDF output for docs (#1860) #3
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: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
release: | |
types: | |
- released | |
jobs: | |
main: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- python-version: '3.10' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: Setup Python ${{ matrix.python-version }} | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements 📦 | |
run: | | |
pip3 install -r requirements.txt | |
pip3 install -r docs/requirements.txt | |
- name: build docs 🏗️ | |
run: cd docs && make html |