@@ -87,29 +87,27 @@ jobs:
8787 name : build-publish
8888 path : _build
8989 # Sync Download Notebooks
90- # - name: Prepare lecture-julia.notebooks sync
91- # shell: bash
92- # run: |
93- # mkdir -p _build/lecture-julia.notebooks
94- # cp -a _notebook_repo/. _build/lecture-julia.notebooks
95- # cp -a _build/jupyter/. _build/lecture-julia.notebooks
96- # rm -r _build/lecture-julia.notebooks/_static
97- # rm -r _build/lecture-julia.notebooks/_panels_static
98- # cp lectures/Project.toml _build/lecture-julia.notebooks
99- # cp lectures/Manifest.toml _build/lecture-julia.notebooks
100- # ls -a _build/lecture-julia.notebooks
101- # - name: Commit notebooks to lecture-julia.notebooks
102- # shell: bash -l {0}
103- # env:
104- # QE_SERVICES_PAT: ${{ secrets.QUANTECON_SERVICES_PAT }}
105- # run: |
106- # git clone https://quantecon-services:[email protected] /quantecon/lecture-julia.notebooks 107-
108- # cp _build/lecture-julia.notebooks/*.ipynb lecture-julia.notebooks
109-
110- # cd lecture-julia.notebooks
111- # git config user.name "QuantEcon Services"
112- # git config user.email "[email protected] " 113- # git add *.ipynb
114- # git commit -m "auto publishing updates to notebooks"
115- # git push origin main
90+ - name : Prepare lecture-julia.notebooks sync
91+ shell : bash
92+ run : |
93+ mkdir -p _build/lecture-julia.notebooks
94+ cp -a _notebook_repo/. _build/lecture-julia.notebooks
95+ cp -a _build/jupyter/. _build/lecture-julia.notebooks
96+ rm -r _build/lecture-julia.notebooks/_static
97+ rm -r _build/lecture-julia.notebooks/_panels_static
98+ cp lectures/Project.toml _build/lecture-julia.notebooks
99+ cp lectures/Manifest.toml _build/lecture-julia.notebooks
100+ ls -a _build/lecture-julia.notebooks
101+ - name : Commit notebooks to lecture-julia.notebooks
102+ shell : bash -l {0}
103+ env :
104+ QE_SERVICES_PAT : ${{ secrets.QUANTECON_SERVICES_PAT }}
105+ run : |
106+ git clone https://quantecon-services:[email protected] /quantecon/lecture-julia.notebooks 107+ cp _build/lecture-julia.notebooks/*.ipynb lecture-julia.notebooks
108+ cd lecture-julia.notebooks
109+ git config user.name "QuantEcon Services"
110+ git config user.email "[email protected] " 111+ git add *.ipynb
112+ git commit -m "auto publishing updates to notebooks"
113+ git push origin main
0 commit comments