34 lines
926 B
YAML
34 lines
926 B
YAML
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 |