This commit is contained in:
@@ -1,19 +1,33 @@
|
|||||||
name: Release Compiled PDF
|
name: Build LaTeX to PDF
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_latex:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Git repository
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Compile LaTeX document
|
|
||||||
uses: xu-cheng/latex-action@v2
|
- name: Set up LaTeX environment
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex
|
||||||
|
|
||||||
|
- name: Build PDF
|
||||||
|
run: |
|
||||||
|
cd latex
|
||||||
|
pdflatex -interaction=nonstopmode -output-directory=output dokumentation.tex
|
||||||
|
|
||||||
|
- name: Upload PDF
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
root_file: latex/dokumentation.tex
|
name: LaTeX-PDF
|
||||||
|
path: output/dokumentation.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user