Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Update README.md

Update README.md #18

Workflow file for this run

name: Generate PDF
on: [push]
jobs:
GeneratePDF:
runs-on: ubuntu-latest
container: mipmip/frontmatter-md-to-pdf:latest
# EDIT ENV VARS BELOW TO SUIT YOUR CONF
env:
PANDOC_CONF_PATH: example/dotpandoc
INPUT_FILE_PATH: example/README.md
OUTPUT_FILE_NAME: README.pdf
DEPLOY_BRANCH: pdf
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Create PDF
#continue-on-error: true
run: |
mkdir build
fred process_frontmatter_specials -d ${INPUT_FILE_PATH} | sed 's/\\\[\\\[.*\\\]\\\]//g' > build/temp.md
rsync -av ${PANDOC_CONF_PATH}/ ~/.pandoc/
pandocomatic -b -i build/temp.md -o build/${OUTPUT_FILE_NAME}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: ${{env.DEPLOY_BRANCH}}