-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (61 loc) · 2.63 KB
/
build-pdf.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
# This is a basic workflow to help you get started with Actions
name: Build PDF
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
paths:
- shizun_ge_resume.tex
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Set up Git repository
uses: actions/checkout@v4
- name: Cache
uses: actions/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: .*
# An explicit key for restoring and saving the cache
key: cache
# An ordered list of keys to use for restoring the cache if no cache hit occurred for key
# restore-keys: # optional
- name: Github Action for LaTeX
# You may pin to the exact commit or the version.
# uses: xu-cheng/latex-action@dacf2cfbdd5fd768c2298cbdc9e105bd9ed7f293
uses: xu-cheng/latex-action@v3
with:
# The root LaTeX file to be compiled
root_file: shizun_ge_resume.tex
# The working directory for the LaTeX engine
# working_directory:
# 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 -halt-on-error -interaction=nonstopmode
# [Deprecated] Install extra packages by tlmgr
# extra_packages: # optional
# Install extra packages by apk
# extra_system_packages: texmf-dist-fontsextra # optional
# Arbitrary bash codes to be executed before compiling LaTeX documents
# pre_compile: # optional
# Arbitrary bash codes to be executed after compiling LaTeX documents
# post_compile: # optional
# Instruct latexmk to enable --shell-escape
# latexmk_shell_escape: # optional
# Instruct latexmk to use LuaLaTeX
# latexmk_use_lualatex: # optional
# Instruct latexmk to use XeLaTeX
latexmk_use_xelatex: true # optional
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: shizun_ge_resume
path: shizun_ge_resume.pdf