-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 904 Bytes
/
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
name: Docs
on:
#push:
# branches-ignore:
# - '**'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Requirements
run: sudo apt update
&& sudo apt install doxygen
&& sudo pip install sphinx
&& sudo pip install sphinx-rtd-theme
&& sudo pip install breathe
&& sudo pip install sphinx-sitemap
- name: Checkout repo
uses: actions/[email protected]
- name: Build Documentation
run: cd docs
&& make html
&& cd _build/html
&& touch .nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.