Gitea Action teste
This commit is contained in:
28
.gitea/workflows/md-to-pdf.yml
Normal file
28
.gitea/workflows/md-to-pdf.yml
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user