diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml new file mode 100755 index 0000000..86ba4fe --- /dev/null +++ b/.github/workflows/latex.yml @@ -0,0 +1,29 @@ +name: Build LaTeX document +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +permissions: + contents: read + pull-requests: read + +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v4 + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v3 + with: + root_file: mug_document_src/main.tex + latexmk_use_lualatex: true + - name: Upload PDF file + uses: actions/upload-artifact@v4 + with: + name: PDF + path: mug_document_src/main.pdf \ No newline at end of file