-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.26 KB
/
build_documentation.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
name: Build MathSemantics documentation
on:
push:
branches: [master]
jobs:
build_documentation:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Set up Python & Minted
uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v3
with:
path: ".github/requirements.txt"
update-pip: "false"
update-setuptools: "false"
update-wheel: "false"
- name: Compile LaTeX document
uses: dante-ev/latex-action@master
with:
root_file: mathsemantics-documentation.tex
args: -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -latexoption=-shell-escape
# - uses: actions/upload-artifact@v2
# with:
# name: MathSemantics.sty Documentation
# path: mathsemantics-documentation.pdf
- name: Upload pdf to gh-pages
uses: test-room-7/action-update-file@v1
with:
file-path: mathsemantics-documentation.pdf
branch: gh-pages
commit-msg: Update documentation
github-token: ${{ secrets.GITHUB_TOKEN }}