workflow arrumado
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
name: Convert Specific MD to PDF
 | 
					name: Convert Specific MD to PDF
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches: [main, master]
 | 
					    branches: [main]
 | 
				
			||||||
    paths: ["RoteiroPitch.md"]
 | 
					    paths: ["RoteiroPitch.md"]
 | 
				
			||||||
  workflow_dispatch:
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -12,17 +12,23 @@ jobs:
 | 
				
			|||||||
      - name: Checkout code
 | 
					      - name: Checkout code
 | 
				
			||||||
        uses: actions/checkout@v4
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install Pandoc
 | 
					      - name: Install Pandoc and LaTeX
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sudo apt-get update
 | 
					          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
 | 
					      - name: Convert specific file
 | 
				
			||||||
        run: |
 | 
					        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
 | 
					      - name: Commit PDF to repository
 | 
				
			||||||
        uses: actions/upload-artifact@v4
 | 
					        run: |
 | 
				
			||||||
        with:
 | 
					          git config --local user.email "actions@gitea.com"
 | 
				
			||||||
          name: generated-pdf
 | 
					          git config --local user.name "Gitea Actions"
 | 
				
			||||||
          path: "*.pdf"
 | 
					          git add "RoteiroPitch.pdf"
 | 
				
			||||||
 | 
					          git diff --staged --quiet || git commit -m "Auto-generate PDF from Markdown"
 | 
				
			||||||
 | 
					          git push
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user