-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.45 KB
/
proposal.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
name: Build PDFs
on: [push, workflow_dispatch]
jobs:
build:
name: Build LaTeX papers
runs-on: ubuntu-latest
strategy:
matrix:
path:
- abstract
- analysis
- dissertation
- progress-report
- proposal
- seminar-presentation
- seminar-talk
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
output/${{ matrix.path }}.pdf
key: ${{ matrix.path }}-${{ hashFiles(matrix.path) }}
- uses: Tommoa/tectonic-fontawesome-action@master
if: steps.cache.outputs.cache-hit != 'true'
with:
tex_path: ${{ matrix.path }}/main.tex
- name: Rename
if: steps.cache.outputs.cache-hit != 'true'
run: |
mkdir output
mv ${{ matrix.path }}/main.pdf output/${{ matrix.path }}.pdf
cp README.md output/index.md
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.path }}.pdf
path: output/${{ matrix.path }}.pdf
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v2
with:
path: artifacts
- name: Move PDFs
run: |
mkdir -p output
mv artifacts/*/*.pdf output
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./output