Skip to content

Commit

Permalink
Update publish_book.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ylyangtw committed Oct 26, 2023
1 parent 4b8a7a9 commit 8d2e46a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,20 @@ jobs:
- name: Install Python dependencies
run: |
sudo apt-get install python3-pip
pip install git+git://github.com/executablebookproject/cli.git#egg=master
pip install ghp-import
PATH="${PATH}:${HOME}/.local/bin"
pip install -U jupyter-book
- name: Build book TOC file
run: |
jupyter-book toc ./notebooks
- name: Build book HTML
run: |
jupyter-book build ./content
jupyter-book build ./notebooks
- name: Push _build/html to gh-pages
run: |
sudo chown -R $(whoami):$(whoami) .
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
ghp-import ./content/_build/html -f -p -n
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html

0 comments on commit 8d2e46a

Please sign in to comment.