diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a3d098c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: LaTeX Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up LaTeX + uses: xu-cheng/latex-action@v3 + with: + pdflatex-xelatex: pdflatex + + - name: Compile LaTeX document + run: | + pdflatex -interaction=nonstopmode -shell-escape cnc-fräse/cnc-fräse.tex + + - name: Upload PDFs. + uses: actions/upload-artifact@v4 + with: + name: PDFs + path: "*.pdf" + retention-days: 5 + if-no-files-found: error \ No newline at end of file