Skip to content

Merge pull request #12 from nelson-niu/cup #428

Merge pull request #12 from nelson-niu/cup

Merge pull request #12 from nelson-niu/cup #428

Workflow file for this run

on: push
name: Build PDF on push
jobs:
run-latex:
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/[email protected]
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: Book-Poly.tex
latexmk_shell_escape: true
post_compile: "mv Book-Poly.pdf poly-book.pdf && mkdir output/ && cp poly-book.pdf output/poly-book.pdf"
- name: Deploy to build branch
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pdf
FOLDER: output