From 906e667bb8e0742107f7e8236e43155fc50f17cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=99=E8=92=99plus?= Date: Sun, 10 Aug 2025 02:40:14 +0800 Subject: [PATCH] =?UTF-8?q?[Fix][Workflow]doxygen=20Doxyfile=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=94=99=E8=AF=AF=20=E4=BD=86=E6=98=AF=E4=BB=8D?= =?UTF-8?q?=E7=84=B6=E7=94=9F=E6=88=90=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/doxygen.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index e2c51a8625f..f76b82e0297 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -31,12 +31,12 @@ on: schedule: - cron: '0 16 30 * *' workflow_dispatch: - + permissions: contents: read pages: write id-token: write - + jobs: build: runs-on: ubuntu-22.04 @@ -55,15 +55,24 @@ jobs: shell: bash run: | cd documentation - doxygen Doxyfile - cat Doxyfile - + if ! doxygen Doxyfile; then + echo "Doxygen failed, but workflow will continue." + fi + + # 检查生成结果 + if [ -d "html" ]; then + echo "✅ HTML documentation generated successfully." + else + echo "❌ Warning: HTML directory not found." + exit 1 + fi + - name: Upload static files as artifact id: deployment uses: actions/upload-pages-artifact@main # or specific "vX.X.X" version tag for this action with: path: documentation/html/ - + deploy: if: github.event_name == 'push' environment: