forked from cram2/pycram
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (33 loc) · 1.2 KB
/
reusable-sphinx-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
name: Build Sphinx documentation 📖
on:
push:
branches:
- dev
# ----------------------------------------------------------------------------------------------------------------------
defaults:
run:
shell: bash
working-directory: .
jobs:
test-and-build:
name: Build Sphinx documentation
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
# ----------------------------------------------------------------------------------------------------------------
- name: Install PyCRAM dependencies 🍼
uses: py-actions/py-dependency-install@v4
with:
path: "requirements.txt"
# ----------------------------------------------------------------------------------------------------------------
- name: Install Sphinx dependencies 📚
uses: py-actions/py-dependency-install@v4
with:
path: "doc/requirements.txt"
# ----------------------------------------------------------------------------------------------------------------
- name: Build Sphinx documentation 📝
working-directory: ./doc
run: |
sudo apt install pandoc
make html