File tree Expand file tree Collapse file tree 3 files changed +37
-6
lines changed Expand file tree Collapse file tree 3 files changed +37
-6
lines changed Original file line number Diff line number Diff line change
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 ./ -W --keep-going
25
+ - name : Upload "_build" folder (cache)
26
+ uses : actions/upload-artifact@v2
27
+ with :
28
+ name : build-cache
29
+ path : _build
Original file line number Diff line number Diff line change 35
35
- name : Download "build" folder (cache)
36
36
uses : dawidd6/action-download-artifact@v2
37
37
with :
38
- workflow : publish .yml
38
+ workflow : cache .yml
39
39
branch : main
40
40
name : build-cache
41
41
path : _build
Original file line number Diff line number Diff line change 36
36
- name : Display Pip Versions
37
37
shell : bash -l {0}
38
38
run : pip list
39
+ # - name: Download "build" folder (cache)
40
+ # uses: dawidd6/action-download-artifact@v2
41
+ # with:
42
+ # workflow: cache.yml
43
+ # branch: main
44
+ # name: build-cache
45
+ # path: _build
39
46
# Build Assets (Download Notebooks and PDF via LaTeX)
40
47
- name : Build PDF from LaTeX
41
48
shell : bash -l {0}
71
78
github_token : ${{ secrets.GITHUB_TOKEN }}
72
79
publish_dir : _build/html/
73
80
cname : python.quantecon.org
74
- - name : Upload "_build" folder (cache)
75
- uses : actions/upload-artifact@v2
76
- with :
77
- name : build-cache
78
- path : _build
79
81
- name : Prepare lecture-python.notebooks sync
80
82
shell : bash -l {0}
81
83
run : |
You can’t perform that action at this time.
0 commit comments