-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (34 loc) · 933 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
name: Documentation
# Generates and Deploys doxygen docs
on:
push:
branches: [ main ] # only gen docs for pushes to main
paths:
- 'include/*'
- 'docs/*'
- './README.md'
workflow_dispatch:
jobs:
# creates a dist/documentation/* folder containing the html documentation
deploy-local:
permissions:
contents: write
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: docs/Doxyfile
- uses: EndBug/add-and-commit@v9
with:
message: 'Automated: commiting doxygen reference'
add: dist/documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: deploy web
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/documentation/html