-
-
Notifications
You must be signed in to change notification settings - Fork 210
56 lines (49 loc) · 1.43 KB
/
build.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: Build
on:
schedule:
- cron: "5 1 * * *"
push:
workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-24.04
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document (German)
uses: xu-cheng/texlive-action@v2
with:
texlive_version: 2024
run: |
./compile.sh
- name: Compile LaTeX document (English)
uses: xu-cheng/texlive-action@v2
with:
texlive_version: 2024
run: |
./compile.sh en
- name: Upload german PDF as Artifact
if: github.ref != 'refs/heads/master' && github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: thesis_main.pdf
path:
thesis_main.pdf
- name: Upload english PDF as Artifact
if: github.ref != 'refs/heads/master' && github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: thesis_englisch.pdf
path:
thesis_englisch.pdf
- name: Upload PDF Files to Release
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "*.pdf"
tags: false
overwrite: true
draft: true
update_latest_release: true