From 6db0113051c21e1d0f6781a4fd2680558855db27 Mon Sep 17 00:00:00 2001 From: szdytom Date: Mon, 7 Jul 2025 20:37:46 +0800 Subject: [PATCH] PDF to Github Pages Signed-off-by: szdytom --- .github/workflows/build.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a62e7bd..2b20c42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,17 @@ jobs: run: | pip install -r requirements.txt python3 make.py - - name: Upload artifact - uses: actions/upload-artifact@v4 + - name: Move PDF to public directory + run: | + mkdir -p public + mv main.pdf public/ + - name: Configure Pages + uses: actions/configure-pages@v4 + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 with: - name: Output - path: 'main.pdf' - + path: public + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +