-
Notifications
You must be signed in to change notification settings - Fork 15
56 lines (47 loc) · 1.4 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
45
46
47
48
49
50
51
52
53
54
55
56
name: Documentation
on: [push, pull_request]
jobs:
build_doc:
permissions:
contents: write
name: Build doc
runs-on: ubuntu-latest
env:
DISPLAY: ':0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
- name: Install Ubuntu packages for Qt
shell: bash
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-xinerama0
- name: Install Dependencies
run: |
pip install PyQt5 PyQtWebEngine
- name: Install
run: |
pip install -e .[doc]
- name: Build doc
run: |
sudo apt-get install xvfb
cd doc
xvfb-run make html
- uses: actions/upload-artifact@v4
with:
path: ./doc/build/*
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
if: startsWith(github.ref, 'refs/tags/')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html