Skip to content

Commit b0719b5

Browse files
authored
harmonise publishing workflows to new QuantEcon workflow (#132)
1 parent 40fa981 commit b0719b5

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Build & Publish to GH Pages
22
on:
33
push:
4-
branches:
5-
- master
4+
tags:
5+
- 'publish*'
66
jobs:
77
publish:
8+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Checkout
@@ -17,7 +18,7 @@ jobs:
1718
miniconda-version: 'latest'
1819
python-version: 3.8
1920
environment-file: environment.yml
20-
activate-environment: lecture-python-programming
21+
activate-environment: quantecon
2122
- name: Display Conda Environment Versions
2223
shell: bash -l {0}
2324
run: conda list
@@ -32,6 +33,11 @@ jobs:
3233
shell: bash -l {0}
3334
run: |
3435
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
36+
zip -r download-notebooks.zip _build/jupyter
37+
- uses: actions/upload-artifact@v2
38+
with:
39+
name: download-notebooks
40+
path: download-notebooks.zip
3541
- name: Copy Download Notebooks for GH-PAGES
3642
shell: bash -l {0}
3743
run: |

environment.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: lecture-python-programming
1+
name: quantecon
22
channels:
33
- default
44
dependencies:
@@ -7,10 +7,12 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book
10-
- sphinxext-rediraffe
1110
- sphinx-multitoc-numbering
12-
- joblib
13-
- interpolation
14-
- sphinx-tojupyter
1511
- quantecon-book-theme
12+
- sphinx-tojupyter
13+
- sphinxext-rediraffe
14+
- sphinx-exercise
15+
- jupytext
16+
- ghp-import
17+
- jupinx
1618

0 commit comments

Comments
 (0)