Skip to content

Commit a706bf0

Browse files
authored
Create cache file
1 parent 2e65587 commit a706bf0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/cache.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Project [using jupyter-book]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- name: Install Python Dependencies
17+
run: |
18+
pip install -r requirements.txt
19+
- name: Install LaTeX dependencies
20+
run: |
21+
sudo apt-get -qq update
22+
sudo apt-get install -y \
23+
texlive-latex-recommended \
24+
texlive-latex-extra \
25+
texlive-fonts-recommended \
26+
texlive-fonts-extra \
27+
texlive-xetex \
28+
latexmk \
29+
xindy
30+
- name: Set up Julia
31+
uses: julia-actions/setup-julia@v1
32+
with:
33+
version: 1.6.0
34+
- name: Install IJulia
35+
run: julia -e 'using Pkg; Pkg.add("IJulia");'
36+
shell: bash
37+
- name: Build HTML
38+
shell: bash -l {0}
39+
run: |
40+
jb build lectures --path-output ./
41+
- name: Upload the "_build" folder (cache)
42+
uses: actions/upload-artifact@v2
43+
with:
44+
name: build-cache
45+
path: _build

0 commit comments

Comments
 (0)