-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 967 Bytes
/
docs.yaml
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
name: Docs
on: [push]
permissions:
contents: write
env:
APT_INSTALL: sudo apt-get install -y --no-install-recommends
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
cache: pip
cache-dependency-path: pyproject.toml
python-version: 3.8
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Install pandoc
run: $APT_INSTALL pandoc
- name: Sphinx build
run: sphinx-build docs/source docs/build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/
force_orphan: true