generated from diegoferigo/classicthesis-uom
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (42 loc) · 1.06 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
53
54
55
56
name: LaTeX CI/CD
on:
push:
pull_request:
workflow_dispatch:
jobs:
compile_latex:
name: Compile LaTeX
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends texlive-full latexmk
- name: Compile document
run: latexmk -pdf thesis
- name: Inspect folder
run: ls -lah .
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
path: thesis.pdf
name: document
release_pdf:
name: Create release
needs: [ compile_latex ]
runs-on: ubuntu-22.04
steps:
- name: Download PDF
uses: actions/download-artifact@v3
with:
name: document
- name: Inspect folder
run: ls -lah .
- name: Release PDF
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: thesis.pdf
draft: true
generate_release_notes: true