fix the pipeline
This commit is contained in:
parent
48d6d65cf8
commit
409862b6f3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user