add ci
Some checks failed
Compile LaTeX document / build (push) Failing after 1s

This commit is contained in:
philipp 2024-02-26 11:23:24 +01:00
parent 470733916e
commit 30cf35d4cc

View File

@ -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