-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.01 KB
/
build_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
name: Docs
on:
pull_request:
branches: [master]
paths:
- "src/CirquePinnacle.h"
- "docs/**"
- "examples/**/*.ino"
- "examples/**/*.cpp"
- ".github/workflows/build_docs.yml"
push:
branches: [master]
paths:
- "src/CirquePinnacle.h"
- "docs/**"
- "examples/**/*.ino"
- "examples/**/*.cpp"
- ".github/workflows/build_docs.yml"
release:
types: [published, edited]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/checkout@v4
- name: Install sphinx deps
run: python -m pip install -r docs/requirements.txt
- name: build docs with Sphinx
working-directory: docs
run: sphinx-build . _build/html
- name: Save sphinx docs as artifact
uses: actions/upload-artifact@v4
with:
name: Cirque_Pinnacle_docs
path: ${{ github.workspace }}/docs/_build/html