Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 670 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 670 Bytes

latex-action

Usage

See action.yml

Compile a LaTeX document

steps:
- uses: actions/checkout@v2

- uses: midoriao/latex-action@main
  with:
    working-dir: test
    latex-source: note.tex

- uses: actions/upload-artifact@v2
  with:
    name: compiled_documents
    path: test/note.pdf

LaTeX-diff

steps:
- uses: actions/checkout@v2
  with:
    fetch-depth: 0  # to fetch the history

- uses: midoriao/latex-action@main
  with:
    working-dir: test
    latex-source: note.tex
    diff-from: HEAD^  # or c48ce2...

- uses: actions/upload-artifact@v2
  with:
    name: compiled_documents
    path: test/note-diff.pdf