Skip to content

Build

Build #75

Workflow file for this run

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