Latex Automation Template

This commit is contained in:
Cedric
2025-03-11 01:06:03 +01:00
parent 75fbbb0706
commit bb1b913b5d
3 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
name: "Build PDF"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Base requirements
run: |
# packages
apt-get --assume-yes update && apt-get --assume-yes install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-lang-german texlive-bibtex-extra biber texlive-science
- name: Checkout code
uses: actions/checkout@v4
- name: Build PDF
run: pdflatex ./main.tex
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
name: main.pdf
path: ./main.pdf
- name: Commit
run: |
git config --global user.name 'Cedric'
git config --global user.email 'cedric.hoelper@mail.de'
git add main.pdf
git commit -am "Automated report"
git push