-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (35 loc) · 852 Bytes
/
Copy pathdocs.yaml
File metadata and controls
35 lines (35 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Publish Docs to GitHub Pages
on:
push:
branches:
- develop
paths:
- "docs/**"
env:
PYTHON_VERSION: "3.10"
jobs:
build-publish:
name: Build and publish docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U .[docs]
- name: Build docs
run: |
cd docs
make html
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html