@@ -55,15 +55,15 @@ jobs:
55
55
# run: |
56
56
# mkdir -p _build/html/_pdf
57
57
# cp -u _build/latex/*.pdf _build/html/_pdf
58
- # - name: Build Download Notebooks (sphinx-tojupyter)
59
- # shell: bash -l {0}
60
- # run: |
61
- # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
62
- # - name: Copy Download Notebooks for GH-PAGES
63
- # shell: bash -l {0}
64
- # run: |
65
- # mkdir -p _build/html/_notebooks
66
- # cp -u _build/jupyter/*.ipynb _build/html/_notebooks
58
+ - name : Build Download Notebooks (sphinx-tojupyter)
59
+ shell : bash -l {0}
60
+ run : |
61
+ jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
62
+ - name : Copy Download Notebooks for GH-PAGES
63
+ shell : bash -l {0}
64
+ run : |
65
+ mkdir -p _build/html/_notebooks
66
+ cp -u _build/jupyter/*.ipynb _build/html/_notebooks
67
67
# Build HTML (Website)
68
68
# BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes
69
69
# and clear the sphinx cache for building final HTML documents.
@@ -82,32 +82,33 @@ jobs:
82
82
env :
83
83
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
84
84
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
85
- # - name: Deploy website to gh-pages
86
- # uses: peaceiris/actions-gh-pages@v3
87
- # with:
88
- # github_token: ${{ secrets.GITHUB_TOKEN }}
89
- # publish_dir: _build/html/
85
+ - name : Deploy website to gh-pages
86
+ uses : peaceiris/actions-gh-pages@v3
87
+ with :
88
+ github_token : ${{ secrets.GITHUB_TOKEN }}
89
+ publish_dir : _build/html/
90
90
# cname: intro.quantecon.org
91
91
- name : Upload "_build" folder (cache)
92
92
uses : actions/upload-artifact@v2
93
93
with :
94
94
name : build-publish
95
95
path : _build
96
- # - name: Prepare lecture-python-intro.notebooks sync
97
- # shell: bash -l {0}
98
- # run: |
99
- # mkdir -p _build/lecture-python-intro.notebooks
100
- # cp -a _notebook_repo/. _build/lecture-python-intro.notebooks
101
- # cp _build/jupyter/*.ipynb _build/lecture-python-intro.notebooks
102
- # ls -a _build/lecture-python-intro.notebooks
103
- # - name: Commit latest notebooks to lecture-python-intro.notebooks
104
- # uses: cpina/github-action-push-to-another-repository@master
105
- # env:
106
- # API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
107
- # with:
108
- # source-directory: '_build/lecture-python-intro.notebooks/'
109
- # destination-repository-username: 'QuantEcon'
110
- # destination-repository-name: 'lecture-python-intro.notebooks'
111
- # commit-message: 'auto publishing updates to notebooks'
112
- # destination-github-username: 'quantecon-services'
113
-
96
+ # Sync notebooks
97
+ - name : Prepare lecture-python-intro.notebooks sync
98
+ shell : bash -l {0}
99
+ run : |
100
+ mkdir -p _build/lecture-python-intro.notebooks
101
+ cp -a _notebook_repo/. _build/lecture-python-intro.notebooks
102
+ cp _build/jupyter/*.ipynb _build/lecture-python-intro.notebooks
103
+ ls -a _build/lecture-python-intro.notebooks
104
+ - name : Commit latest notebooks to lecture-python-intro.notebooks
105
+ uses : cpina/github-action-push-to-another-repository@master
106
+ env :
107
+ API_TOKEN_GITHUB : ${{ secrets.QUANTECON_SERVICES_PAT }}
108
+ with :
109
+ source-directory : ' _build/lecture-python-intro.notebooks/'
110
+ destination-repository-username : ' QuantEcon'
111
+ destination-repository-name : ' lecture-python-intro.notebooks'
112
+ commit-message : ' auto publishing updates to notebooks'
113
+ destination-github-username : ' quantecon-services'
114
+
0 commit comments