-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (43 loc) · 1.12 KB
/
sphinx-doc-build.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
name: Build Sphinx Documentation
on: [workflow_call, pull_request]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ./doc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Install plantuml
run: |
sudo apt-get update
sudo apt-get install -y plantuml
- name: Build Sphinx documentation
run: make html OFFICIAL_BUILD=1
- name: Zip Sphinx documentation
run: |
mv build/html sphinx_docs
zip -r sphinx_docs.zip sphinx_docs
- name: Upload sphinx_docs
uses: actions/upload-artifact@v4
with:
name: sphinx_docs
path: ./doc/sphinx_docs.zip