-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.21 KB
/
latex.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
name: Latex compile Thesis
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Pip
uses: BSFishy/pip-action@v1
with:
packages: pygments
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Download Time New Roman
run: sudo apt install ttf-mscorefonts-installer
- name: Build font information caches
run: sudo fc-cache -rv
- name: Compile Latex
uses: dante-ev/latex-action@2021-A
with:
root_file: main.tex
working_directory: thesis
args: --shell-escape -xelatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
- name: Rename output PDF
run: mv thesis/main.pdf thesis/thesis.pdf
- name: Upload PDF
uses: actions/[email protected]
with:
name: Thesis
path: thesis/thesis.pdf
if-no-files-found: error