Skip to content

Compile LaTeX

Compile LaTeX #27

Workflow file for this run

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