workflow arrumado

This commit is contained in:
2025-11-03 11:40:10 -03:00
parent 32f2e7efa5
commit 4fa7276898

View File

@@ -1,7 +1,7 @@
name: Convert Specific MD to PDF
on:
push:
branches: [main, master]
branches: [main]
paths: ["RoteiroPitch.md"]
workflow_dispatch:
@@ -12,17 +12,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Pandoc
- name: Install Pandoc and LaTeX
run: |
sudo apt-get update
sudo apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-latex-extra
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 "Roteiro pitch.md" -o "Roteiro pitch.pdf" --pdf-engine=xelatex -V geometry:margin=1in
pandoc "RoteiroPitch.md" -o "RoteiroPitch.pdf" --pdf-engine=xelatex -V geometry:margin=1in
- name: Upload PDF as artifact
uses: actions/upload-artifact@v4
with:
name: generated-pdf
path: "*.pdf"
- 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