Skip to content

Commit

Permalink
harmonise publishing workflows to new QuantEcon workflow (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky authored Apr 13, 2021
1 parent 40fa981 commit b0719b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down
12 changes: 7 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lecture-python-programming
name: quantecon
channels:
- default
dependencies:
Expand All @@ -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

2 comments on commit b0719b5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.