diff --git a/.gitea/workflows/latex.yaml b/.gitea/workflows/latex.yaml index a03f50c..e486c66 100644 --- a/.gitea/workflows/latex.yaml +++ b/.gitea/workflows/latex.yaml @@ -1,19 +1,33 @@ -name: Release Compiled PDF +name: Build LaTeX to PDF + on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] - - workflow_dispatch: + branches: + - main jobs: - build_latex: + build: runs-on: ubuntu-latest + steps: - - name: Set up Git repository - uses: actions/checkout@v2 - - name: Compile LaTeX document - uses: xu-cheng/latex-action@v2 + - name: Checkout code + uses: actions/checkout@v3 + + - 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: - root_file: latex/dokumentation.tex \ No newline at end of file + name: LaTeX-PDF + path: output/dokumentation.pdf