Skip to content

Commit a22be30

Browse files
committed
Try building docs on GH actions
1 parent c7a5e4e commit a22be30

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build docs
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-upload:
10+
name: Build & Upload Artifact
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- uses: actions/setup-python@v3
16+
with:
17+
python-version: "3.10"
18+
19+
- uses: tlambert03/setup-qt-libs@v1
20+
21+
- name: Install Dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install ".[docs]"
25+
- name: Build Docs
26+
uses: aganders3/headless-gui@v1
27+
with:
28+
run: make html
29+
working-directory: ./docs
30+
31+
- name: Upload artifact
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: docs
35+
path: docs/_build

0 commit comments

Comments
 (0)