edit config to execute binding site notebook #64
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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy-book: | |
name: Build book | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Additional info about the build | |
shell: bash | |
run: | | |
uname -a | |
df -h | |
ulimit -a | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-activate-base: false | |
python-version: 3.11 | |
activate-environment: biochemist-python | |
environment-file: requirements.yaml | |
- name: Build the book | |
shell: bash -l {0} | |
run: | | |
pip install docutils --upgrade | |
jupyter-book build biochemist-python | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: biochemist-python/_build/html |