-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (52 loc) · 1.68 KB
/
compile.yml
File metadata and controls
53 lines (52 loc) · 1.68 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn on colored mode
run: |
mv Notation/ms.pdf Notation/lagraph.pdf
touch Notation/colored.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn on ascii mode
run: |
mv Notation/ms.pdf Notation/lagraph-colored.pdf
touch Notation/ascii.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Rename file and turn off colored mode
run: |
mv Notation/ms.pdf Notation/lagraph-ascii-colored.pdf
rm Notation/colored.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: ms.tex
working_directory: Notation
- name: Install and Build 🔧
run: |
cp Notation/ms.pdf Notation/lagraph-ascii.pdf
mkdir build
mv Notation/lagraph*.pdf build/
mv Notation/README.md build/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: compiled-pdf
folder: build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'