diff --git a/.gitea/workflows/docs.yml b/.gitea/workflows/docs.yml new file mode 100644 index 0000000..bffc505 --- /dev/null +++ b/.gitea/workflows/docs.yml @@ -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: ./Doku.pdf