From f98d69557a81dd466b60af26d0359a351f7d8479 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 22 Jun 2021 10:04:53 +1000 Subject: [PATCH] Add separate cache workflow to supply cache assets --- .github/workflows/cache.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cache.yml diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml new file mode 100644 index 000000000..d8572f141 --- /dev/null +++ b/.github/workflows/cache.yml @@ -0,0 +1,29 @@ +name: Build Cache [using jupyter-book] +on: + push: + branches: + - main +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Anaconda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + auto-activate-base: true + miniconda-version: 'latest' + python-version: 3.8 + environment-file: environment.yml + activate-environment: quantecon + - name: Build HTML + shell: bash -l {0} + run: | + jb build lectures --path-output ./ + - name: Upload "_build" folder (cache) + uses: actions/upload-artifact@v2 + with: + name: build-cache + path: _build \ No newline at end of file