From e58d4c1b7da357a8520b0c2f5ee934a92992f423 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Fri, 6 Feb 2026 10:48:40 +1100 Subject: [PATCH] feat: build PDF and notebooks in CI preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add PDF and notebook builds before HTML in CI workflow so the Netlify preview includes all asset types. Builds run sequentially (PDF → notebooks → HTML) in a single job to reuse the container and execution cache. --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03ec9d8..f8bbd11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,12 +25,28 @@ jobs: cache-type: 'build' source-dir: 'lectures' + - name: Build PDF + uses: quantecon/actions/build-lectures@v0.5.0 + with: + source-dir: 'lectures' + builder: 'pdflatex' + upload-failure-reports: true + + - name: Build Notebooks + uses: quantecon/actions/build-lectures@v0.5.0 + with: + source-dir: 'lectures' + builder: 'jupyter' + upload-failure-reports: true + - name: Build HTML id: build uses: quantecon/actions/build-lectures@v0.5.0 with: source-dir: 'lectures' builder: 'html' + html-copy-pdf: true + html-copy-notebooks: true upload-failure-reports: true - name: Deploy to Netlify