forked from skia-python/skia-python
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 888 Bytes
/
build_docs.yml
File metadata and controls
33 lines (27 loc) · 888 Bytes
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
name: Build and Upload Docs
on:
workflow_dispatch:
jobs:
# This is identical to "build_docs" in ci except for not using/dependent on
# newly built wheels, and trigged on manual.
build_docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.11'
- name: Build docs
run: |
# installing libegl1 will also install libegl-mesa0
sudo apt-get -y install libegl1
python -m pip install --pre skia-python
python -m pip install sphinx sphinx-rtd-theme
sphinx-build -b html docs docs/_build/html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html