From fc14b7184e5fd9e890eabc4b9ac819b7f2d2b044 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Tue, 10 Jun 2025 18:41:18 +0200 Subject: [PATCH] added forgejo workflows --- .forgejo/workflows/tex-build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .forgejo/workflows/tex-build.yml diff --git a/.forgejo/workflows/tex-build.yml b/.forgejo/workflows/tex-build.yml new file mode 100644 index 0000000..4f68c12 --- /dev/null +++ b/.forgejo/workflows/tex-build.yml @@ -0,0 +1,31 @@ +name: Build LaTeX Document + +on: + push: + branches: + - main + pull_request: + +jobs: + build-latex: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install LaTeX + run: | + sudo apt-get update + sudo apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended + + - name: Compile LaTeX document + run: | + pdflatex -interaction=nonstopmode main.tex + pdflatex -interaction=nonstopmode main.tex # run twice for refs + + - name: Upload PDF artifact + uses: actions/upload-artifact@v3 + with: + name: main-pdf + path: main.pdf