forked from xu-cheng/latex-action
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
56 lines (56 loc) · 1.9 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Github Action for LaTeX
description: GitHub Action to compile LaTeX documents
author: Cheng XU
inputs:
root_file:
description: The root LaTeX file to be compiled
required: true
glob_root_file:
description: Interpret the root_file input as bash glob pattern
working_directory:
description: The working directory for this action
work_in_root_file_dir:
description: Change directory into each root file's directory before compiling each documents.
compiler:
description: The LaTeX engine to be invoked
default: latexmk
args:
description: Extra arguments to be passed to the LaTeX engine
default: "-pdf -file-line-error -halt-on-error -interaction=nonstopmode"
extra_packages:
description: "[Deprecated] Install extra packages by tlmgr"
extra_system_packages:
description: Install extra packages by apk
extra_fonts:
description: Install extra .ttf/.otf fonts.
pre_compile:
description: Arbitrary bash codes to be executed before compiling LaTeX documents
post_compile:
description: Arbitrary bash codes to be executed after compiling LaTeX documents
latexmk_shell_escape:
description: Instruct latexmk to enable --shell-escape
latexmk_use_lualatex:
description: Instruct latexmk to use LuaLaTeX
latexmk_use_xelatex:
description: Instruct latexmk to use XeLaTeX
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.root_file }}
- ${{ inputs.glob_root_file }}
- ${{ inputs.working_directory }}
- ${{ inputs.work_in_root_file_dir }}
- ${{ inputs.compiler }}
- ${{ inputs.args }}
- ${{ inputs.extra_packages }}
- ${{ inputs.extra_system_packages }}
- ${{ inputs.extra_fonts }}
- ${{ inputs.pre_compile }}
- ${{ inputs.post_compile }}
- ${{ inputs.latexmk_shell_escape }}
- ${{ inputs.latexmk_use_lualatex }}
- ${{ inputs.latexmk_use_xelatex }}
branding:
icon: book
color: blue