-
Notifications
You must be signed in to change notification settings - Fork 20
37 lines (34 loc) · 1 KB
/
documentation.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
name: Build Documentation
on:
workflow_dispatch:
push:
branches: ['dev-docs']
jobs:
docs:
name: Build docs with Sphinx
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: latest
products: Signal_Processing_Toolbox Parallel_Computing_Toolbox
- name: Delete tests
run: rm -r test/
- name: Reformat 1-liners
uses: matlab-actions/run-command@v2
with:
command: addpath build; reformat1liners();
- name: Build documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "pip install sphinxcontrib-matlabdomain"
build-command: "make html"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/