Compile LaTeX #27
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: Compile LaTeX | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tex: | |
| description: "LaTeX source" | |
| required: true | |
| jobs: | |
| compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install Tectonic | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net | sh | |
| - name: Write LaTeX file | |
| run: | | |
| mkdir -p latex | |
| echo "${{ github.event.inputs.tex }}" > latex/main.tex | |
| - name: Compile | |
| run: | | |
| ./tectonic latex/main.tex | |
| - name: Upload PDF | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pdf | |
| path: latex/main.pdf |