fix the pipeline

This commit is contained in:
Remy Moll 2024-09-19 22:28:14 +02:00
parent 48d6d65cf8
commit 409862b6f3

View File

@ -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
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