diff --git a/.gitea/workflows/md-to-pdf.yml b/.gitea/workflows/md-to-pdf.yml new file mode 100644 index 0000000..ee6ab89 --- /dev/null +++ b/.gitea/workflows/md-to-pdf.yml @@ -0,0 +1,28 @@ +name: Convert Specific MD to PDF +on: + push: + branches: [main, master] + paths: ["RoteiroPitch.md"] + workflow_dispatch: + +jobs: + convert: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Pandoc + run: | + sudo apt-get update + sudo apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-latex-extra + + - name: Convert specific file + run: | + pandoc "Roteiro pitch.md" -o "Roteiro pitch.pdf" --pdf-engine=xelatex -V geometry:margin=1in + + - name: Upload PDF as artifact + uses: actions/upload-artifact@v4 + with: + name: generated-pdf + path: "*.pdf"