-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.11 KB
/
docs.yml
File metadata and controls
42 lines (35 loc) · 1.11 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
name: Docs CI
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: "true"
- name: Install Doxygen
run: sudo apt-get install doxygen graphviz -y
shell: bash
- name: Generate Doxygen Documentation
run: docs/doxygen/doxygen.sh
shell: bash
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build Docs
run: pip install .[dev] && sphinx-build -ET docs build/html/
- name: Publish Docs
if: github.event_name == 'push'
# We pin to the SHA, not the tag, for security reasons.
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html/
keep_files: true