-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.36 KB
/
docs.yml
File metadata and controls
49 lines (47 loc) · 1.36 KB
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
name: Docs 📝 Build 🛠️ & Deploy
permissions:
contents: read
on:
workflow_call:
inputs:
deploy:
required: false
default: false
type: boolean
concurrency:
group: docs-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ vars.LATEST_PYTHON_VERSION }}
- name: Set up Pandoc # for AcouPipe
uses: acoular/ci/.github/actions/setup-pandoc@main
with:
os: ${{ matrix.os }}
- name: Set up PortAudio
uses: acoular/ci/.github/actions/setup-portaudio@main
with:
os: ${{ matrix.os }}
- name: Set up Graphviz
uses: acoular/ci/.github/actions/setup-graphviz@main
with:
os: ${{ matrix.os }}
- name: Run sphinx
run: uv run --frozen --exact --group docs make -C docs html
- name: Upload artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v6
with:
name: build-docs
path: ./docs/build/html