-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (58 loc) · 1.92 KB
/
compile.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This action runs a python script that generates a .tex file which thanks contributors and several more that clean up files.
# This action then compiles each main.tex document and pushes all the documents in one commit.
name: Clean and Compile
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Jobs run in parallel
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Use python to automate generating some .tex files
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install Python Dependencies
run: |
pip install --upgrade pip
pip install requests
- name: Make Contributors List
run: |
python make_contributors.py
- name: Cleanup Files
run: |
python clean_equations.py
python clean_quotes.py
# Compile calculus work
- name: Compile Calculus
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
latexmk_use_xelatex: true
working_directory: ./calc
# Compile multivariable calculus work
- name: Compile Multivariable Calculus
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
latexmk_use_xelatex: true
working_directory: ./multiCalc
# Compile diffeq work
- name: Compile DiffEq
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
latexmk_use_xelatex: true
working_directory: ./diffEq
# Push all compiled documents
- name: Push Files
run: |
git config --global user.name 'Github Actions [BOT]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git commit -am "Compile LaTeX files"
git push