From c9155e2273b6a865df646f97e94c8604a0dccbf7 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Thu, 19 Sep 2024 22:28:14 +0200 Subject: [PATCH] fix the pipeline --- .gitea/workflows/build-pdf.yaml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-pdf.yaml b/.gitea/workflows/build-pdf.yaml index a1377f7..f06ae6f 100644 --- a/.gitea/workflows/build-pdf.yaml +++ b/.gitea/workflows/build-pdf.yaml @@ -7,14 +7,26 @@ 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: 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