Skip to content

DevOps-Cheatsheet: feat: Update DevOps Cheatsheet Hub Structure and C… #18

DevOps-Cheatsheet: feat: Update DevOps Cheatsheet Hub Structure and C…

DevOps-Cheatsheet: feat: Update DevOps Cheatsheet Hub Structure and C… #18

Workflow file for this run

name: Generate PDFs
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pandoc and LaTeX
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y texlive-xetex
- name: Generate PDF
run: |
for file in $(find . -name '*.md'); do
pandoc "$file" -o "${file%.md}.pdf" --pdf-engine=xelatex
done
- name: Upload PDF artifacts
uses: actions/upload-artifact@v4
with:
name: pdfs
path: '**/*.pdf'