2024-09-06 13:51:52 +00:00
|
|
|
name: Build LaTeX document
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build_latex:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v4
|
2024-09-26 11:51:52 +00:00
|
|
|
- name: Build LaTeX Document
|
|
|
|
run: |
|
2024-09-26 12:00:25 +00:00
|
|
|
workdirr=${{ github.workspace }}
|
|
|
|
echo $workdirr
|
2024-09-26 12:03:34 +00:00
|
|
|
docker run --rm -v "$workdirr:$workdirr" -w $workdirr ghcr.io/xu-cheng/texlive-full:latest ls -la $workdirr
|
2024-09-26 12:02:41 +00:00
|
|
|
docker run --rm -v "$workdirr:$workdirr" -w $workdirr ghcr.io/xu-cheng/texlive-full:latest latexmk -pdf -xelatex -shell-escape src/main.tex
|
2024-09-26 11:51:52 +00:00
|
|
|
|
2024-09-06 13:51:52 +00:00
|
|
|
- name: Upload PDF file
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: PDF
|
|
|
|
path: src/main.pdf
|