diff --git a/.github/workflows/latexmk.yml b/.github/workflows/latexmk.yml new file mode 100644 index 0000000..b356dc0 --- /dev/null +++ b/.github/workflows/latexmk.yml @@ -0,0 +1,29 @@ +name: Render XeLaTeX on PR to dev + +on: + pull_request: + branches: + - dev + +jobs: + build-pdf: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Compile XeLaTeX + uses: dante-ev/latex-action@2021-A + with: + root_file: main.tex + working_directory: latex + compiler: xelatex + args: -interaction=nonstopmode -halt-on-error -file-line-error + extra_system_packages: "fonts-freefont-otf" + + - name: Upload compiled PDF + uses: actions/upload-artifact@v4 + with: + name: compiled-pdf + path: latex/main.pdf