-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (33 loc) · 896 Bytes
/
deploy-docs.yml
File metadata and controls
43 lines (33 loc) · 896 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
43
---
name: docs
on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v6.0.0
- name: Setup Python
uses: actions/setup-python@v6.0.0
with:
python-version: '3.13'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pdoc
pip install tox
- name: Build docs
run: |
tox -e docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4.0.0
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/
force_orphan: true