Files
Roteiro-Pitch/.gitea/workflows/md-to-pdf.yml
2025-11-03 11:40:10 -03:00

35 lines
986 B
YAML

name: Convert Specific MD to PDF
on:
push:
branches: [main]
paths: ["RoteiroPitch.md"]
workflow_dispatch:
jobs:
convert:
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-latex-base texlive-fonts-recommended texlive-latex-extra
- name: List files (para debug)
run: ls -la
- name: Convert specific file
run: |
pandoc "RoteiroPitch.md" -o "RoteiroPitch.pdf" --pdf-engine=xelatex -V geometry:margin=1in
- name: Commit PDF to repository
run: |
git config --local user.email "actions@gitea.com"
git config --local user.name "Gitea Actions"
git add "RoteiroPitch.pdf"
git diff --staged --quiet || git commit -m "Auto-generate PDF from Markdown"
git push