-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.05 KB
/
deploy-docs.yml
File metadata and controls
41 lines (34 loc) · 1.05 KB
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
# .github/workflows/deploy-docs.yml
name: Deploy Documentation
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
pip install sphinx
- name: Build HTML documentation
working-directory: docs
run: make clean html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
# this token is provided automatically by GitHub Actions
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages # target branch
publish_dir: docs/_build/html # directory to push