@@ -55,15 +55,15 @@ jobs:
5555 # run: |
5656 # mkdir -p _build/html/_pdf
5757 # 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
6767 # Build HTML (Website)
6868 # BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes
6969 # and clear the sphinx cache for building final HTML documents.
@@ -82,32 +82,33 @@ jobs:
8282 env :
8383 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
8484 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/
9090 # cname: intro.quantecon.org
9191 - name : Upload "_build" folder (cache)
9292 uses : actions/upload-artifact@v2
9393 with :
9494 name : build-publish
9595 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- # user-email: services@quantecon.org
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+ user-email : services@quantecon.org
0 commit comments