-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (34 loc) · 1.06 KB
/
main.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
name: Build latest PDF
on:
push:
branches:
# PRs can only use caches from their target branch. We therefore need to
# make sure we run on 'main' too.
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
style:
name: Build latest PDF
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: tex/main.tex
work_in_root_file_dir: true
latexmk_use_lualatex: true
extra_system_packages: "font-liberation"
latexmk_shell_escape: true
- name: Rename PDF
run: |
mv tex/main.pdf tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: FormalLanguageConstrainedReachabilityLectureNotes_latest
path: tex/FormalLanguageConstrainedReachabilityLectureNotes.pdf