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