Move docs deps to requirements.txt #4
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
# Works only if github.event.release.tag_name == package version | |
name: Build Docs | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- docsrc/** | |
jobs: | |
build: | |
name: Build docs | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docsrc/requirements.txt | |
- name: Build | |
run: | | |
cd docsrc/ | |
make github | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: builds | |
path: docsrc/_build/html |