Skip to content

Commit 195319a

Browse files
authored
Add separate cache workflow to supply cache assets (#154)
1 parent f3885ba commit 195319a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/cache.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build Cache [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: Setup Anaconda
13+
uses: conda-incubator/setup-miniconda@v2
14+
with:
15+
auto-update-conda: true
16+
auto-activate-base: true
17+
miniconda-version: 'latest'
18+
python-version: 3.8
19+
environment-file: environment.yml
20+
activate-environment: quantecon
21+
- name: Build HTML
22+
shell: bash -l {0}
23+
run: |
24+
jb build lectures --path-output ./
25+
- name: Upload "_build" folder (cache)
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: build-cache
29+
path: _build

0 commit comments

Comments
 (0)