-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (33 loc) · 925 Bytes
/
latexdiff.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Latexdiff
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout new version
uses: actions/checkout@v2
with:
path: new
- name: Checkout old version
uses: actions/checkout@v2
with:
path: old
ref: v1.0
- name: Install latexdiff
run: sudo apt-get install latexdiff
- name: Run latexdiff
run: latexdiff --flatten old/test/test.tex new/test/test.tex > new/test/diff.tex
- name: Compile LaTeX difference document
uses: xu-cheng/latex-action@v2
with:
root_file: diff.tex
working_directory: new/test/
- name: Check pdf files
run: |
file new/test/diff.pdf | grep -q ' PDF '
- name: Upload
uses: actions/upload-artifact@master
with:
name: test
path: new/test
if: always()