-
-
Notifications
You must be signed in to change notification settings - Fork 121
47 lines (47 loc) · 1.38 KB
/
build-and-publish-with-latexmk.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
name: Build with lualatex (and publish to gh-pages)
on:
push:
pull_request:
schedule:
- cron: '1 2 2,16 * *'
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile main-german.tex
uses: dante-ev/latex-action@latest
with:
root_file: main-german.tex
args:
- name: Compile main-minted-german.tex
uses: dante-ev/latex-action@latest
with:
root_file: main-minted-german.tex
args:
- name: Compile main-english.tex
uses: dante-ev/latex-action@latest
with:
root_file: main-english.tex
args:
- name: Compile main-paderborn-german.tex
uses: dante-ev/latex-action@latest
with:
root_file: main-paderborn-german.tex
args:
- name: Compile main-paderborn-english.tex
uses: dante-ev/latex-action@latest
with:
root_file: main-paderborn-english.tex
args:
- name: Gather build artifacts
run: mkdir build && cp -r main-*.pdf .github/_config.yml docs/* build/
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}