Skip to content

Commit 906e667

Browse files
committed
[Fix][Workflow]doxygen Doxyfile 返回错误 但是仍然生成成功
1 parent 3849966 commit 906e667

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/doxygen.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ on:
3131
schedule:
3232
- cron: '0 16 30 * *'
3333
workflow_dispatch:
34-
34+
3535
permissions:
3636
contents: read
3737
pages: write
3838
id-token: write
39-
39+
4040
jobs:
4141
build:
4242
runs-on: ubuntu-22.04
@@ -55,15 +55,24 @@ jobs:
5555
shell: bash
5656
run: |
5757
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+
6170
- name: Upload static files as artifact
6271
id: deployment
6372
uses: actions/upload-pages-artifact@main # or specific "vX.X.X" version tag for this action
6473
with:
6574
path: documentation/html/
66-
75+
6776
deploy:
6877
if: github.event_name == 'push'
6978
environment:

0 commit comments

Comments
 (0)