Skip to content

Instantly share code, notes, and snippets.

@yuzhi535
Created May 19, 2023 13:05
Show Gist options
  • Save yuzhi535/9e20de1224f093de462becc235552978 to your computer and use it in GitHub Desktop.
Save yuzhi535/9e20de1224f093de462becc235552978 to your computer and use it in GitHub Desktop.
generate latex pdf workflow (chinese)
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
latexmk_use_xelatex: true
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: main.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment