From 9059d89f23513c520a839f73b1300d4bdf8c2390 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 22 Jun 2021 11:25:10 +1000 Subject: [PATCH 1/2] Enable cache using cache.yml workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32b1c7ab6..8f4f6fe14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Download "build" folder (cache) uses: dawidd6/action-download-artifact@v2 with: - workflow: publish.yml + workflow: cache.yml branch: main name: build-cache path: _build From 6fbfb5d55ace37754535b344142f1a5619ac3696 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 22 Jun 2021 12:03:28 +1000 Subject: [PATCH 2/2] clean up publish and ensure error free cache builds --- .github/workflows/cache.yml | 2 +- .github/workflows/publish.yml | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index d8572f141..631e77e96 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -21,7 +21,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ + jb build lectures --path-output ./ -W --keep-going - name: Upload "_build" folder (cache) uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bc4d4546..e95449f9e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,6 +36,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: cache.yml + # branch: main + # name: build-cache + # path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - name: Build PDF from LaTeX shell: bash -l {0} @@ -71,11 +78,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/html/ cname: python.quantecon.org - - name: Upload "_build" folder (cache) - uses: actions/upload-artifact@v2 - with: - name: build-cache - path: _build - name: Prepare lecture-python.notebooks sync shell: bash -l {0} run: |