-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.14 KB
/
thesis.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
name: Thesis
on: [push, pull_request]
jobs:
thesis:
runs-on: ubuntu-latest
name: Thesis
steps:
# Check out the repo
- uses: actions/checkout@v1
# Install pandoc and XeLaTeX
# The pandoc version from apt is old and incompatible with the flags in the
# Makefile. So we download the deb straight from pandoc's website.
- name: Install requirements
run: |
# pandoc
curl -L https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb --output pandoc.deb
sudo dpkg -i pandoc.deb
# pandoc-crossref
curl -L https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.6.3/pandoc-crossref-Linux-2.9.2.1.tar.xz --output pandoc-crossref.tar.xz
tar xf pandoc-crossref.tar.xz
sudo mv pandoc-crossref /bin/
# XeTeX
sudo apt-get install texlive-xetex
sudo apt-get install texlive-lang-spanish
# Build the thesis file
- name: Build the file
run: make
# Upload it as an artifact
- name: Upload the file
uses: actions/upload-artifact@v2
with:
name: Thesis
path: out/thesis.pdf