From b1d0773be9ae7f8b7ab74fa3ceccd401c51f5efa Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 24 Nov 2025 16:07:13 +1100 Subject: [PATCH] Add execution report uploads for all build steps in CI and publish workflows - Add execution reports upload for LaTeX build step in both ci.yml and publish.yml - Add execution reports upload for HTML build step in both workflows - Add execution reports upload for Download Notebooks build in publish.yml - Use unique artifact names (execution-reports-latex, execution-reports-html, execution-reports-notebooks) to avoid conflicts - All report uploads trigger on build failure to help diagnose execution errors --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish.yml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb1a324d7..c6cfb77ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: uses: actions/upload-artifact@v5 if: failure() with: - name: execution-reports + name: execution-reports-latex path: _build/latex/reports # Final Build of HTML - name: Build HTML @@ -84,7 +84,7 @@ jobs: uses: actions/upload-artifact@v5 if: failure() with: - name: execution-reports + name: execution-reports-html path: _build/html/reports - name: Install Node.js and Netlify CLI shell: bash -l {0} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 104e5b310..7bc9f15e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,6 +50,12 @@ jobs: shell: bash -l {0} run: | jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going + - name: Upload Execution Reports (LaTeX) + uses: actions/upload-artifact@v5 + if: failure() + with: + name: execution-reports-latex + path: _build/latex/reports - name: Copy LaTeX PDF for GH-PAGES shell: bash -l {0} run: | @@ -60,6 +66,12 @@ jobs: run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going zip -r download-notebooks.zip _build/jupyter + - name: Upload Execution Reports (Download Notebooks) + uses: actions/upload-artifact@v5 + if: failure() + with: + name: execution-reports-notebooks + path: _build/jupyter/reports - uses: actions/upload-artifact@v5 with: name: download-notebooks @@ -74,6 +86,12 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ -n -W --keep-going + - name: Upload Execution Reports (HTML) + uses: actions/upload-artifact@v5 + if: failure() + with: + name: execution-reports-html + path: _build/html/reports # Create HTML archive for release assets - name: Create HTML archive shell: bash -l {0}