From 4bc0fada274635117ea1791d4de81954110e9cdb Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 12 Feb 2021 12:08:30 +1100 Subject: [PATCH 1/4] download build artifact from publish.yml --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b5ca291..eb04ab30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,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: publish.yml + branch: main + name: build-cache + path: _build - name: Build HTML shell: bash -l {0} run: | From d2e9489677d7402f52e60c485a1016a10b1d1d7e Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 12 Feb 2021 12:19:50 +1100 Subject: [PATCH 2/4] update main to master --- .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 eb04ab30..adf45554 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: uses: dawidd6/action-download-artifact@v2 with: workflow: publish.yml - branch: main + branch: master name: build-cache path: _build - name: Build HTML From cb179954d9c47414c306e8f3d6f317be2ecf4940 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 12 Feb 2021 13:27:35 +1100 Subject: [PATCH 3/4] enable copy updates --- .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 adf45554..dfe724a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter mkdir _build/html/_notebooks - cp _build/jupyter/*.ipynb _build/html/_notebooks + cp -u _build/jupyter/*.ipynb _build/html/_notebooks - name: Preview Deploy to Netlify uses: nwtgck/actions-netlify@v1.1 with: From fe04e54690a173be303f69f6f013d6c854c57e31 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 12 Feb 2021 13:32:05 +1100 Subject: [PATCH 4/4] don't throw error if mkdir target exists from cache --- .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 dfe724a6..2b144d92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter - mkdir _build/html/_notebooks + mkdir -p _build/html/_notebooks cp -u _build/jupyter/*.ipynb _build/html/_notebooks - name: Preview Deploy to Netlify uses: nwtgck/actions-netlify@v1.1