Skip to content

Commit

Permalink
update book package
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad committed Jan 4, 2024
1 parent e39f878 commit 230d9fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prep-book-package.yml
Expand Up @@ -11,6 +11,8 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Run only if commit message contains 'update book package'
if: contains(github.event.head_commit.message, 'update book package')
- uses: actions/checkout@v2
- name: Convert
run: |
Expand Down
11 changes: 5 additions & 6 deletions convert.sh
Expand Up @@ -11,13 +11,12 @@ for i in *.ipynb; do
jupyter nbconvert --to python $i
done

# Remove irrelevant files
rm code/chapters/index.py
rm code/chapters/preface.py
rm code/chapters/README.py
rm ipynb/README.ipynb

# Move files to correct folders
mv *.py -v code/chapters
mv *.ipynb -v ipynb

# Remove irrelevant files
rm code/chapters/index.py
rm code/chapters/preface.py
rm code/chapters/README.py
rm ipynb/README.ipynb

0 comments on commit 230d9fa

Please sign in to comment.