2024-09-06 13:51:52 +00:00
|
|
|
name: Build LaTeX document
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build_latex:
|
2024-09-27 08:07:08 +00:00
|
|
|
runs-on: dind
|
2024-09-06 13:51:52 +00:00
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v4
|
2024-09-27 11:15:48 +00:00
|
|
|
- name: Build LaTeX Document
|
|
|
|
run: |
|
|
|
|
workdirr=${{ github.workspace }}
|
|
|
|
echo $workdirr
|
2024-09-27 11:18:06 +00:00
|
|
|
docker run --rm -v "$workdirr:/build" ghcr.io/xu-cheng/texlive-full:latest latexmk -pdf -xelatex -shell-escape /build/src/main.tex
|
2024-09-06 13:51:52 +00:00
|
|
|
- name: Upload PDF file
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: PDF
|
|
|
|
path: src/main.pdf
|