Skip to content

Commit 4e65f9c

Browse files
committed
MAINT: Enable Publishing of Support Notebooks
1 parent 6c12768 commit 4e65f9c

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,18 @@ jobs:
117117
cp -a _notebook_repo/. _build/lecture-python-programming.notebooks
118118
cp _build/jupyter/*.ipynb _build/lecture-python-programming.notebooks
119119
ls -a _build/lecture-python-programming.notebooks
120-
# - name: Commit latest notebooks to lecture-python-programming.notebooks
121-
# uses: cpina/github-action-push-to-another-repository@main
122-
# env:
123-
# CONDA: /__w/lecture-python-programming.myst/lecture-python-programming.myst/3
124-
# API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
125-
# with:
126-
# source-directory: '_build/lecture-python-programming.notebooks/'
127-
# destination-repository-username: 'QuantEcon'
128-
# destination-repository-name: 'lecture-python-programming.notebooks'
129-
# target-branch: master
130-
# commit-message: 'auto publishing updates to notebooks'
131-
# destination-github-username: 'quantecon-services'
132-
# user-email: [email protected]
120+
- name: Commit notebooks to lecture-python-programming.notebooks
121+
shell: bash -l {0}
122+
env:
123+
QE_SERVICES_PAT: ${{ secrets.QUANTECON_SERVICES_PAT }}
124+
run: |
125+
git clone https://quantecon-services:[email protected]/quantecon/lecture-python-programming.notebooks
126+
127+
cp _build/lecture-python-programming.notebooks/*.ipynb lecture-python-programming.notebooks
128+
129+
cd lecture-python-programming.notebooks
130+
git config user.name "QuantEcon Services"
131+
git config user.email "[email protected]"
132+
git add *.ipynb
133+
git commit -m "auto publishing updates to notebooks"
134+
git push origin master

0 commit comments

Comments
 (0)