-
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1 KB
/
docs.yml
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
44
---
name: Sphinx build
on: push
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Build HTML
run: make docs
- uses: actions/[email protected]
if: github.ref == 'refs/heads/master'
with:
path: docs/_build/html
deploy:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy docs
id: deployment
uses: actions/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}