forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.72 KB
/
doxygen.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Doxygen
on:
pull_request: null
workflow_dispatch:
inputs:
myCommit:
description: Commit SHA1
required: false
default: ''
type: string
push: null
release:
types:
- published
jobs:
generate_documentation:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: '${{ inputs.myCommit }}'
- name: Install Doxygen
run: >
# sudo apt-get install doxygen -y
curl https://www.doxygen.nl/files/doxygen-1.9.5.linux.bin.tar.gz | tar
xzf - --strip-components=2 doxygen-1.9.5/bin/doxygen -C .
- name: Generate Documentation
run: |
export PROJECT_NUMBER="$(git describe --always --tags --dirty)"
./doxygen Doxyfile
touch docs/html/.nojekyll
deploy_documentation:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Doxygen
run: >
# sudo apt-get install doxygen -y
curl https://www.doxygen.nl/files/doxygen-1.9.5.linux.bin.tar.gz | tar
xzf - --strip-components=2 doxygen-1.9.5/bin/doxygen -C .
- name: Generate Documentation
run: |
export PROJECT_NUMBER="$(git describe --always --tags --dirty)"
./doxygen Doxyfile
touch docs/html/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.0
with:
token: '${{ secrets.GITHUB_TOKEN }}'
branch: gh-pages
folder: docs/html
target-folder: .