Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release documents | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout the repository | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Step 2: Compile LaTeX documents | |
| - name: Build PDFs | |
| uses: dante-ev/latex-action@latest | |
| with: | |
| root_file: main.tex # Change this to your main .tex file | |
| compiler: latexmk | |
| args: -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode | |
| working_directory: . # Folder containing your LaTeX files | |
| extra_system_packages: texlive-latex-extra texlive-fonts-recommended texlive-lang-spanish | |
| # extra_font_packages: fonts.zip # Uncomment if you have custom fonts | |
| # Step 3: Upload PDFs as Release Assets | |
| - name: Upload PDFs to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| files: main.pdf # Path to the compiled PDF | |
| overwrite_files: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |