-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 893 Bytes
/
Copy pathmain.yml
File metadata and controls
37 lines (33 loc) · 893 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
34
35
36
name: Build and deploy documentation
on:
push:
branches: master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install deps
run: |
sudo apt-get install -y doxygen
sudo apt-get install -y python3-sphinx
pip3 install sphinx-rtd-theme
pip3 install breathe
- name: Build documentation 📕
run: |
cd docs
doxygen
make html
cd _build/html
touch .nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: docs
FOLDER: docs/_build/html
CLEAN: true
SINGLE_COMMIT: true