Skip to content

Commit

Permalink
update CD github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchobben committed Aug 14, 2024
1 parent 5b14a03 commit 4936822
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ jobs:
- name: Commit Files Pythia Book
if: github.ref == 'refs/heads/main'
run: |
python src/render_sfinx_toc.py
python src/eo_datascience/render_sfinx_toc.py
python src/eo_datascience/clean_nb.py
cp ./_toc.yml ./pythia/
cp ./Makefile ./pythia/
cp -R ./notebooks/. ./pythia/notebooks/
Expand All @@ -120,7 +121,8 @@ jobs:
- name: Commit Files Pythia Book Branch dev
if: github.ref == 'refs/heads/dev'
run: |
python src/render_sfinx_toc.py
python src/eo_datascience/render_sfinx_toc.py
python src/eo_datascience/clean_nb.py
cp ./_toc.yml ./pythia/
cp ./Makefile ./pythia/
cp -R ./notebooks/. ./pythia/notebooks/
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ post-render:
for i in $(QMD); do quarto convert $$i; done
- mv chapters/*.ipynb notebooks/ >/dev/null 2>&1
- for f in chapters/*.quarto_ipynb ; do mv -- "$f" "${f%.quarto_ipynb}.ipynb" >/dev/null 2>&1; done
python src/clean-nb.py
cp Makefile notebooks/

data:
Expand Down
1 change: 0 additions & 1 deletion notebooks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ post-render:
for i in $(QMD); do quarto convert $$i; done
- mv chapters/*.ipynb notebooks/ >/dev/null 2>&1
- for f in chapters/*.quarto_ipynb ; do mv -- "$f" "${f%.quarto_ipynb}.ipynb" >/dev/null 2>&1; done
python src/clean-nb.py
cp Makefile notebooks/

data:
Expand Down
1 change: 1 addition & 0 deletions src/eo_datascience/clean_nb.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def find_ipynb(dir):

def main():
clean_up_frontmatter()
convert_refs()

if __name__ == '__main__':
main()

0 comments on commit 4936822

Please sign in to comment.