Update publish_book.yaml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish JupyterBook to GitHub Pages | |
on: | |
push: | |
pull_request: | |
types: [ opened, reopened ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Python dependencies | |
run: | | |
sudo apt-get install python3-pip | |
pip install ghp-import | |
pip install -U jupyter-book | |
- name: Build book HTML | |
run: | | |
jupyter-book build ./manual_jb/content | |
- name: GitHub Pages action publish | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./manual_jb/content/_build/html |