From 30cf35d4cc8af51bc285e9fd732568bd981c360e Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 26 Feb 2024 11:23:24 +0100 Subject: [PATCH] add ci --- .gitea/workflows/action.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/action.yml diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml new file mode 100644 index 0000000..ab6fe40 --- /dev/null +++ b/.gitea/workflows/action.yml @@ -0,0 +1,33 @@ +name: Compile LaTeX document + +on: + push: + branches: + - main # or any other branch you want to trigger the workflow + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: ghcr.io/xu-cheng/latex-action:full + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Compile LaTeX Document + run: latexmk -pdf -output-directory=/github/workspace ${{ env.root_file }} + env: + root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file + + - name: Upload PDF + uses: actions/upload-artifact@v3 + with: + name: Compiled-PDF + path: ./*.pdf +