18 lines
562 B
YAML
18 lines
562 B
YAML
name: Build LaTeX document
|
|
on: [push]
|
|
jobs:
|
|
build_latex:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Git repository
|
|
uses: actions/checkout@v4
|
|
- name: Build LaTeX Document
|
|
run: |
|
|
ls -la ${{ github.workspace }}
|
|
docker run --rm -v ${{ github.workspace }}:/workdir -w /workdir ghcr.io/xu-cheng/texlive-full:latest latexmk -pdf -xelatex -shell-escape src/main.tex
|
|
|
|
- name: Upload PDF file
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: PDF
|
|
path: src/main.pdf |