This action can be used to compile LaTeX documents with latexmk
. The action uses an ubuntu based docker image.
It calls latexmk
in the working directory to compile a LaTeX document.
The LaTeX file to be compiled.
The directory for output files, relative to the root of the repository. Defaulted to .
.
Additional arguments to pass over to latexmk
.
name: test
on: [push]
jobs:
test-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: antaljanosbenjamin/compile-latex@v1.0.0
with:
file: test.tex
args: -pdf
- run: '(test -f test.pdf && echo PDF exists) || (echo PDF does not exist && exit 1)'
For further examples check the test workflow.