Skip to content

Commit 8937c8a

Browse files
committed
only pushing to master triggers deploy, PR just builds
1 parent 3b21e04 commit 8937c8a

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build LaTeX document
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build_latex:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up Git repository
10+
uses: actions/checkout@v2
11+
- name: Compile LaTeX document
12+
uses: xu-cheng/latex-action@v2
13+
with:
14+
root_file: DynamicalBook.tex
15+
working_directory: book
16+
args: -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -latexoption=-shell-escape
17+
extra_system_packages: py-pygments
18+
- name: Uploads the document
19+
uses: actions/upload-artifact@v2
20+
with:
21+
name: DynamicalBook
22+
path: book/DynamicalBook.pdf
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build LaTeX document
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
37
jobs:
48
build_latex:
59
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)