Skip to content

Commit f145e57

Browse files
committed
add an action to build the book
1 parent e12d94f commit f145e57

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-book.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build book
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
cpp-linter:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get update -y -qq
22+
sudo apt-get -qq -y install texlive build-essential
23+
24+
- name: Build
25+
run: |
26+
make
27+
28+
- name: Archive
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: book-pdf
32+
path: CompHydroTutorial.pdf
33+

0 commit comments

Comments
 (0)