forked from Greedysky/TTKWidgetTools
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.04 KB
/
doxygen.yml
File metadata and controls
40 lines (33 loc) · 1.04 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
# Author: Greedysky <greedysky@163.com>
name: doxygen
on: workflow_call
env:
TTK_MODULE: TTKWidgetTools
TTK_VERSION: 3.2.0.0
jobs:
build:
name: Build on document by doxygen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Build package
run: |
sudo apt install graphviz doxygen
doxygen Doxyfile
# add main html page
echo -n '<!DOCTYPE html>
<html>
<body>
<script>window.location.href="html/index.html"</script>
</body>
</html>' > TTKDocs/main.html
# add package
7z a ${{env.TTK_MODULE}}-${{env.TTK_VERSION}}-document.7z TTKDocs
working-directory: ${{github.workspace}}
- name: Archive artifacts
uses: softprops/action-gh-release@v2
with:
tag_name: ${{env.TTK_VERSION}}
token: ${{secrets.GITHUB_TOKEN}}
generate_release_notes: false
files: ${{github.workspace}}/${{env.TTK_MODULE}}-${{env.TTK_VERSION}}-document.7z