From bc90c7005b65d42348f0fe421d47790ed69eda1e Mon Sep 17 00:00:00 2001 From: Yichen Zhao <37545115+FengChendian@users.noreply.github.com> Date: Fri, 21 May 2021 12:58:25 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c4af754 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build LaTeX document +on: [push] +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + + - name: Compile to PDF + uses: HermitSun/latex-action@v3 + with: + root_file: njuthesis.tex + latexmk_use_xelatex: true + args: '-bibtex' + + - name: Upload PDF + uses: actions/upload-artifact@v2 + with: + name: PDF + path: njuthesis.pdf -- GitLab