Skip to content

Commit

Permalink
only pushing to master triggers deploy, PR just builds
Browse files Browse the repository at this point in the history
  • Loading branch information
olynch committed Mar 8, 2022
1 parent 3b21e04 commit 8937c8a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build LaTeX document
on:
pull_request:

jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: DynamicalBook.tex
working_directory: book
args: -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -latexoption=-shell-escape
extra_system_packages: py-pygments
- name: Uploads the document
uses: actions/upload-artifact@v2
with:
name: DynamicalBook
path: book/DynamicalBook.pdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build LaTeX document
on: [push]
on:
push:
branches:
- master

jobs:
build_latex:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8937c8a

Please sign in to comment.