Latex Automation Template
This commit is contained in:
34
.gitea/workflows/latex.yaml
Normal file
34
.gitea/workflows/latex.yaml
Normal 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
|
||||
Reference in New Issue
Block a user