-
Notifications
You must be signed in to change notification settings - Fork 52
30 lines (27 loc) · 894 Bytes
/
build.yml
File metadata and controls
30 lines (27 loc) · 894 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
name: Build documentation
permissions:
contents: read
on:
push:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
jobs:
build-docs:
name: Build the documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Sphinx
run: sudo apt install sphinx-doc python3-sphinx
- name: Install gettext
run: sudo apt-get install -y gettext
- name: Build the documentation
run: make html SPHINXOPTS='-n -W -a'
- name: Build the documentation and show all errors
if: ${{ failure() }}
# This mode will not exit on the first error and will display all of them
run: make html SPHINXOPTS='-n -a'