From 409862b6f3d4d3869a31122e984c5868dec63cf5 Mon Sep 17 00:00:00 2001 From: Remy Moll <me@moll.re> Date: Thu, 19 Sep 2024 22:28:14 +0200 Subject: [PATCH] fix the pipeline --- .gitea/workflows/build-pdf.yaml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-pdf.yaml b/.gitea/workflows/build-pdf.yaml index a1377f7..9ce04d0 100644 --- a/.gitea/workflows/build-pdf.yaml +++ b/.gitea/workflows/build-pdf.yaml @@ -7,14 +7,29 @@ on: jobs: build-pdf: runs-on: ubuntu-latest - container: - image: marpteam/marp-cli:latest - # env: - # NODE_ENV: development - + steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + + - name: Install Marp CLI + run: npm install -g @marp-team/marp-cli + + - name: Install chromium + run: sudo apt-get install -y chromium-browser - name: Build PDF - run: npx marp --pdf slides.md \ No newline at end of file + run: marp main.md --pdf + + - name: Upload output as artifact + uses: https://gitea.com/actions/upload-artifact@v3 + with: + name: presentation + path: slide.pdf + if-no-files-found: error + retention-days: 15