Skip to content

Commit 27472b8

Browse files
authored
enable sync to lecture-python.notebooks (#110)
1 parent 97c36ee commit 27472b8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ jobs:
5454
with:
5555
name: build-cache
5656
path: _build
57-
# - name: Prepare lecture-python.notebooks sync
58-
# shell: bash -l {0}
59-
# run: |
60-
# mkdir -p _build/lecture-python.notebooks
61-
# cp -a _notebook_repo/. _build/lecture-python.notebooks
62-
# cp environment.yml _build/lecture-python.notebooks
63-
# cp _build/jupyter/*.ipynb _build/lecture-python.notebooks
64-
# ls -a _build/lecture-python.notebooks
65-
# - name: Commit latest notebooks to lecture-python.notebooks
66-
# uses: cpina/github-action-push-to-another-repository@master
67-
# env:
68-
# API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
69-
# with:
70-
# source-directory: '_build/lecture-python.notebooks/'
71-
# destination-repository-username: 'QuantEcon'
72-
# destination-repository-name: 'lecture-python.notebooks'
73-
# commit-message: 'auto publishing updates to notebooks'
74-
# destination-github-username: 'quantecon-services'
75-
# user-email: [email protected]
57+
- name: Prepare lecture-python.notebooks sync
58+
shell: bash -l {0}
59+
run: |
60+
mkdir -p _build/lecture-python.notebooks
61+
cp -a _notebook_repo/. _build/lecture-python.notebooks
62+
cp environment.yml _build/lecture-python.notebooks
63+
cp _build/jupyter/*.ipynb _build/lecture-python.notebooks
64+
ls -a _build/lecture-python.notebooks
65+
- name: Commit latest notebooks to lecture-python.notebooks
66+
uses: cpina/github-action-push-to-another-repository@master
67+
env:
68+
API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }}
69+
with:
70+
source-directory: '_build/lecture-python.notebooks/'
71+
destination-repository-username: 'QuantEcon'
72+
destination-repository-name: 'lecture-python.notebooks'
73+
commit-message: 'auto publishing updates to notebooks'
74+
destination-github-username: 'quantecon-services'
75+
user-email: [email protected]

0 commit comments

Comments
 (0)