-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.18 KB
/
latex.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
name: Build LaTeX document
on:
push:
branches:
- master
jobs:
build_latex:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.11"
activate-environment: fall-prob-paper
environment-file: fall-prob-paper-env.yml
miniforge-version: latest
- name: Create figures
shell: bash -el {0}
run: |
python src/control.py
python src/generate_time_series_imgs.py
Rscript src/statistics.R
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: PDF
path: main.pdf
- name: Setup deploy folder
run: |
mkdir ghpages
mv main.pdf ghpages/main.pdf
- name: Push PDF to ghpages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ghpages
single-commit: true