-
Notifications
You must be signed in to change notification settings - Fork 18
34 lines (27 loc) · 856 Bytes
/
docs.yml
File metadata and controls
34 lines (27 loc) · 856 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
32
33
# Copyright (c) 2021, Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
name: Documentation
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt install -y cmake ninja-build python3 python3-pip doxygen graphviz
pip3 install -r docs/requirements.txt
- name: Build
run: |
cmake -Sdocs -Bbuild_docs
cmake --build build_docs -t doxygen
cmake --build build_docs -t html
touch build_docs/html/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: build_docs/html
single-commit: true