From b0719b55c9cbe2d1dce017bcbbb2448dbcae08fe Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 13 Apr 2021 13:42:47 +1000 Subject: [PATCH] harmonise publishing workflows to new QuantEcon workflow (#132) --- .github/workflows/publish.yml | 12 +++++++++--- environment.yml | 12 +++++++----- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1ce648b7..b18c2915 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,11 @@ name: Build & Publish to GH Pages on: push: - branches: - - master + tags: + - 'publish*' jobs: publish: + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: - name: Checkout @@ -17,7 +18,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: lecture-python-programming + activate-environment: quantecon - name: Display Conda Environment Versions shell: bash -l {0} run: conda list @@ -32,6 +33,11 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter + zip -r download-notebooks.zip _build/jupyter + - uses: actions/upload-artifact@v2 + with: + name: download-notebooks + path: download-notebooks.zip - name: Copy Download Notebooks for GH-PAGES shell: bash -l {0} run: | diff --git a/environment.yml b/environment.yml index ab8a9276..5b5a2f2b 100644 --- a/environment.yml +++ b/environment.yml @@ -1,4 +1,4 @@ -name: lecture-python-programming +name: quantecon channels: - default dependencies: @@ -7,10 +7,12 @@ dependencies: - pip - pip: - jupyter-book - - sphinxext-rediraffe - sphinx-multitoc-numbering - - joblib - - interpolation - - sphinx-tojupyter - quantecon-book-theme + - sphinx-tojupyter + - sphinxext-rediraffe + - sphinx-exercise + - jupytext + - ghp-import + - jupinx