Compare commits
1 commit
73d1c391c8
...
474f39097d
Author | SHA1 | Date | |
---|---|---|---|
474f39097d |
1 changed files with 34 additions and 0 deletions
34
.gitea/workflows/docs.yml
Normal file
34
.gitea/workflows/docs.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
name: Build docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
# Edit here with the names of your latex file and directory (can use ".")
|
||||||
|
DIR: docs
|
||||||
|
FILE: projektdokumentation.tex
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install TeXlive
|
||||||
|
env:
|
||||||
|
ACCEPT_EULA: y
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
run: |
|
||||||
|
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
|
||||||
|
sudo apt-get update && sudo apt-get install texlive-lang-german texlive-xetex texlive texlive-publishers texlive-science latexmk cm-super ttf-mscorefonts-installer -y
|
||||||
|
sudo fc-cache -f -v
|
||||||
|
|
||||||
|
- name: LaTeX compile
|
||||||
|
working-directory: ${{ env.DIR }}
|
||||||
|
run: latexmk -pdf -xelatex ${{ env.FILE }}
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://git.kjan.de/actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Doku
|
||||||
|
path: docs/projektdokumentation.pdf
|
Reference in a new issue