-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (35 loc) · 1.01 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install nglview-js-widgets
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