29 lines
		
	
	
		
			727 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			727 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
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"
 |