Skip to content

Commit 1cbc8fc

Browse files
authored
MAINT: Enable cache using cache.yml workflow (#155)
* Enable cache using cache.yml workflow * clean up publish and ensure error free cache builds
1 parent 195319a commit 1cbc8fc

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build HTML
2222
shell: bash -l {0}
2323
run: |
24-
jb build lectures --path-output ./
24+
jb build lectures --path-output ./ -W --keep-going
2525
- name: Upload "_build" folder (cache)
2626
uses: actions/upload-artifact@v2
2727
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Download "build" folder (cache)
3636
uses: dawidd6/action-download-artifact@v2
3737
with:
38-
workflow: publish.yml
38+
workflow: cache.yml
3939
branch: main
4040
name: build-cache
4141
path: _build

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
- name: Display Pip Versions
3737
shell: bash -l {0}
3838
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
3946
# Build Assets (Download Notebooks and PDF via LaTeX)
4047
- name: Build PDF from LaTeX
4148
shell: bash -l {0}
@@ -71,11 +78,6 @@ jobs:
7178
github_token: ${{ secrets.GITHUB_TOKEN }}
7279
publish_dir: _build/html/
7380
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
7981
- name: Prepare lecture-python.notebooks sync
8082
shell: bash -l {0}
8183
run: |

0 commit comments

Comments
 (0)