Update book.yml #98
This file contains hidden or 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: jupyter-book | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-book: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Setup Miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
environment-file: environment.yml | |
activate-environment: python-fortran | |
python-version: 3.9 | |
auto-activate-base: false | |
- name: Install PyCall | |
run: | | |
julia -e ' using Pkg; Pkg.add(["REPL", "PyCall"]); Pkg.build("PyCall")' | |
- name: Build the book | |
shell: bash -l {0} | |
run: | | |
jupyter-book build notebooks | |
- name: GitHub Pages action | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./notebooks/_build/html |