Skip to content

Add files via upload #9

Add files via upload

Add files via upload #9

Workflow file for this run

name: Convert Markdown to PDF
on:
workflow_dispatch:
push:
paths:
- "*.md"
pull_request:
paths:
- "*.md"
jobs:
convert_to_pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc wkhtmltopdf
- name: Convert Markdown to PDF
run: |
mkdir -p output
for file in *.md; do
pandoc "$file" --pdf-engine=wkhtmltopdf -o "output/${file%.md}.pdf"
done
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
name: PDF-Files
path: output/