forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1022 Bytes
/
documentation.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
name: Generate Documentation
permissions:
contents: write
on:
push:
branches: [upload]
workflow_dispatch:
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: cache css
id: cache-css
uses: actions/cache@v3
with:
key: doxygen-css-cache
path: ./doxygen_doc/doxygen-awesome-css
- if: ${{ steps.cache-css.outputs.cache-hit != 'true' }}
name: download css
run: |
git clone https://github.com/jothepro/doxygen-awesome-css ./doxygen_doc/doxygen-awesome-css
- name: run doxygen
uses: mattnotmitt/doxygen-action@v1.9.2
with:
working-directory: .
doxyfile-path: ./doxygen_doc/Doxyfile
# additional-packages: font-fira-code
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doxygen_doc/html/