Skip to content

Commit

Permalink
feat(ci): added Github Actions pipeline to build PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Hrdlička committed Oct 3, 2023
1 parent d9de6c5 commit 262ed27
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/marp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build

on:
push:
branches:
- master
pull_request:
branches:
- master

#env:

jobs:
# Checks syntax formatting.
convert:
name: Convert to PDF
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./slides
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Use Node.js
with:
node-version: '20.x'
- run: "npm ci"
- run: "npx marp --html --pdf --pdf-outlines --pdf-outlines.pages=false -I . -o dist"
- uses: actions/upload-artifact@v3
name: Archive built PDFs
with:
name: dist-pdfs
path: dist/[0-1]*.pdf

0 comments on commit 262ed27

Please sign in to comment.