Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
47bb82a
updates to github actions for testing
mmcky Dec 1, 2020
0c1cced
update repository url
mmcky Dec 1, 2020
55e0b01
see if checkout needs credentials
mmcky Dec 1, 2020
ba031c9
new approach
mmcky Dec 1, 2020
85f5bfe
test commit to branch add-binder on notebooks repo
mmcky Dec 1, 2020
a49cb0d
fix git branch
mmcky Dec 1, 2020
22b590d
fix git commands
mmcky Dec 1, 2020
303105f
fix git link
mmcky Dec 1, 2020
143c3d7
make sure git uses ssh to pull
mmcky Dec 1, 2020
ff41aef
try using actions/checkout
mmcky Dec 1, 2020
5b4d2f2
fix
mmcky Dec 1, 2020
bd66473
change to use PAT
mmcky Dec 1, 2020
2cbde90
add more status
mmcky Dec 1, 2020
f7ac5fd
check path
mmcky Dec 1, 2020
629289d
update checkout path
mmcky Dec 1, 2020
f387016
check path in with
mmcky Dec 1, 2020
0caa233
try PAT
mmcky Dec 1, 2020
6874256
try new path outside of repo
mmcky Dec 1, 2020
8a6d56e
update git commands
mmcky Dec 1, 2020
b9b9282
check new link
mmcky Dec 1, 2020
2771ede
setup cp path
mmcky Dec 1, 2020
2a31ab3
fix repo link
mmcky Dec 1, 2020
eeffd72
check if push is causing the issue
mmcky Dec 2, 2020
8cc89bd
test using marketplace action
mmcky Dec 2, 2020
54841b3
update branch name for testing
mmcky Dec 2, 2020
9654da3
setup specific files to sync
mmcky Dec 2, 2020
41bd33c
preserve README and config for updates in lecture-python-programming.…
mmcky Dec 2, 2020
c7409ad
refine cp command
mmcky Dec 2, 2020
a175ada
list contens of prep folder
mmcky Dec 2, 2020
53a0af5
issue with . directories for git sync
mmcky Dec 2, 2020
4a30da5
fix typo
mmcky Dec 2, 2020
99085f0
move environment to root level
mmcky Dec 2, 2020
60ad23d
Merge branch 'master' into add-binder
mmcky Dec 3, 2020
87404aa
Merge branch 'master' into add-binder
mmcky Dec 3, 2020
e881227
setup for publish from master
mmcky Dec 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build Project [using jupyter-book]
on: [push]
jobs:
tests:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
jobs:
tests:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -32,11 +32,32 @@ jobs:
shell: bash -l {0}
run: |
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
- name: Copy Download Notebooks for GH-PAGES
shell: bash -l {0}
run: |
mkdir _build/html/_notebooks
cp _build/jupyter/*.ipynb _build/html/_notebooks
- name: Deploy
- name: Deploy website to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html/
cname: python-programming.quantecon.org
cname: python-programming.quantecon.org
- name: Prepare lecture-python-programming.notebooks sync
shell: bash -l {0}
run: |
mkdir -p _build/lecture-python-programming.notebooks
cp -a _notebook_repo/. _build/lecture-python-programming.notebooks
cp _build/jupyter/*.ipynb _build/lecture-python-programming.notebooks
ls -a _build/lecture-python-programming.notebooks
- name: Commit latest notebooks to lecture-python-programming.notebooks
uses: cpina/github-action-push-to-another-repository@master
env:
API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
with:
source-directory: '_build/lecture-python-programming.notebooks/'
destination-repository-username: 'QuantEcon'
destination-repository-name: 'lecture-python-programming.notebooks'
commit-message: 'auto publishing updates to notebooks'
destination-github-username: 'quantecon-services'
user-email: services@quantecon.org
7 changes: 7 additions & 0 deletions _notebook_repo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# lecture-python-programming.notebooks

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/QuantEcon/lecture-python-programming.notebooks/master)

Notebooks for https://python-programming.quantecon.org

**Note:** This README should be edited [here](https://github.com/quantecon/lecture-python-programming.myst/.binder)
17 changes: 17 additions & 0 deletions _notebook_repo/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: lecture-python-programming
channels:
- default
dependencies:
- python=3.8
- anaconda
- pip
- pip:
- git+https://github.com/executablebooks/jupyter-book.git
- sphinxext-rediraffe
- git+https://github.com/executablebooks/sphinx-multitoc-numbering
- git+https://github.com/executablebooks/sphinx-exercise.git
- joblib
- interpolation
- git+https://github.com/QuantEcon/sphinx-tojupyter.git
- git+https://github.com/QuantEcon/quantecon-book-theme.git