forked from jackolney/travis-ci-latex-pdf
-
-
Notifications
You must be signed in to change notification settings - Fork 23
64 lines (59 loc) · 2.02 KB
/
xu-cheng-docker-full-texlive.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
57
58
59
60
61
62
63
64
name: Github Action for LaTeX by xu-cheng
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Compile main.tex
uses: xu-cheng/latex-action@master
with:
# The root LaTeX file to be compiled
root_file: main.tex
# The working directory for the LaTeX engine
working_directory: src/
# The LaTeX engine to be invoked
compiler: # optional, default is latexmk
# Extra arguments to be passed to the LaTeX engine
args: # optional, default is -pdf -file-line-error -interaction=nonstopmode
# Install extra packages by apk
# extra_system_packages: # optional
- name: Compile biber-mwe.tex
uses: xu-cheng/latex-action@master
with:
root_file: biber-mwe.tex
working_directory: src/
- name: Compile minted.tex
uses: xu-cheng/latex-action@master
with:
root_file: minted.tex
working_directory: src/
args: -pdf -file-line-error -interaction=nonstopmode -shell-escape
- name: Compile fonts-local.tex
uses: xu-cheng/latex-action@master
with:
root_file: fonts-local.tex
working_directory: src/
args: -xelatex -file-line-error -interaction=nonstopmode
# Wildcards are not supported yet: https://github.com/actions/upload-artifact/issues/11
- name: Upload main.pdf
uses: actions/upload-artifact@v1
with:
name: main
path: src/main.pdf
- name: Upload biber-mwe.pdf
uses: actions/upload-artifact@v1
with:
name: biber-mwe
path: src/biber-mwe.pdf
- name: Upload minted.pdf
uses: actions/upload-artifact@v1
with:
name: minted
path: src/minted.pdf
- name: Upload fonts-local.pdf
uses: actions/upload-artifact@v1
with:
name: fonts-local
path: src/fonts-local.pdf