forked from phytec/partup
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 821 Bytes
/
Copy pathdocumentation.yml
File metadata and controls
31 lines (29 loc) · 821 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
31
name: documentation
on:
push:
branches: [ main ]
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Receive tags
run: git fetch --tags origin
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install meson libglib2.0-dev libyaml-dev libparted-dev \
python3 python3-virtualenv
- name: Build documentation
run: |
virtualenv -p /usr/bin/python3 -v env
source env/bin/activate
pip install -r doc/requirements.txt
meson setup build -Ddoc=true
meson compile -C build doc