File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 31
31
schedule :
32
32
- cron : ' 0 16 30 * *'
33
33
workflow_dispatch :
34
-
34
+
35
35
permissions :
36
36
contents : read
37
37
pages : write
38
38
id-token : write
39
-
39
+
40
40
jobs :
41
41
build :
42
42
runs-on : ubuntu-22.04
@@ -55,15 +55,24 @@ jobs:
55
55
shell : bash
56
56
run : |
57
57
cd documentation
58
- doxygen Doxyfile
59
- cat Doxyfile
60
-
58
+ if ! doxygen Doxyfile; then
59
+ echo "Doxygen failed, but workflow will continue."
60
+ fi
61
+
62
+ # 检查生成结果
63
+ if [ -d "html" ]; then
64
+ echo "✅ HTML documentation generated successfully."
65
+ else
66
+ echo "❌ Warning: HTML directory not found."
67
+ exit 1
68
+ fi
69
+
61
70
- name : Upload static files as artifact
62
71
id : deployment
63
72
uses : actions/upload-pages-artifact@main # or specific "vX.X.X" version tag for this action
64
73
with :
65
74
path : documentation/html/
66
-
75
+
67
76
deploy :
68
77
if : github.event_name == 'push'
69
78
environment :
You can’t perform that action at this time.
0 commit comments