-
Notifications
You must be signed in to change notification settings - Fork 187
42 lines (34 loc) · 912 Bytes
/
Copy pathgenerate-docs.yml
File metadata and controls
42 lines (34 loc) · 912 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
36
37
38
39
40
41
42
name: Deploy Documentation
on:
workflow_dispatch:
push:
branches:
- release
jobs:
deploy-docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
python-version: '3.12'
- name: Install dependencies
run: |
uv sync --group docs --group interactive --extra extras
- name: Build the documentation
run: |
cd docs
uv run make html
- name: Publish the documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
cname: openpnm.org