Skip to content

Generate PDF

Generate PDF #10

Workflow file for this run

name: Generate PDF
on:
push:
paths:
- 'litepaper/litepaper.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v2
- name: Install Pandoc
run: sudo apt-get install -y pandoc npm texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
- name: Install Mermaid Filter
run: npm install --global mermaid-filter
- name: Convert Markdown to PDF
run: pandoc latex-includes.yaml litepaper.md -F mermaid-filter --variable urlcolor=cyan -o litepaper.pdf
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.pdf"
commit_message: Render PDF