Skip to content

Instantly share code, notes, and snippets.

@hasparus
Created July 7, 2020 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasparus/82f3a91d05be05c1b370d83ccab305c9 to your computer and use it in GitHub Desktop.
Save hasparus/82f3a91d05be05c1b370d83ccab305c9 to your computer and use it in GitHub Desktop.
Print GitHub readme to PDF with Pandoc
name: Print readme to PDF
on:
push:
paths: ['readme.md', '.github/workflows/print-readme.yml']
jobs:
make_pdf:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: docker://pandoc/latex:2.9
with:
args: -f gfm --pdf-engine=xelatex --output=readme.pdf readme.md
- uses: actions/upload-artifact@master
with:
name: readme
path: readme.pdf
@hasparus
Copy link
Author

hasparus commented Jul 7, 2020

note for future: install texlive-fonts-extra for librebaskerville?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment