-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.15 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
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.12"
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
- 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