-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (38 loc) · 1.02 KB
/
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
38
39
40
41
42
43
44
45
name: Generate docs
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- 'README.md'
branches: [main]
jobs:
generate-docs:
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: install Doxygen
uses: ssciwr/doxygen-install@v1
with:
version: "1.10.0"
- name: create path
run: mkdir -p etc/docs/api/current
- name: Generate docs
run: doxygen Doxyfile
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: etc/docs/api/current
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: etc/docs/api/current
publish_branch: docs-gh_pages
cname: cpp.viam.dev