Skip to content

Commit 5e0de9b

Browse files
authored
Create book.yml
1 parent 36d3396 commit 5e0de9b

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/book.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build JupyterBook
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Sync JupyterBook"] # Must match the exact name of your sync workflow
6+
types: [completed]
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash -l {0}
15+
steps:
16+
17+
- name: Checkout files in repo
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Miniconda
21+
uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
activate-environment: pylipd
24+
environment-file: environment.yml
25+
python-version: "3.11"
26+
auto-activate-base: false
27+
28+
- name: Install JupyterBook
29+
run: |
30+
conda activate pylipd
31+
pip install jupyter-book>=0.7.0b
32+
conda list
33+
34+
- name: Build the Book
35+
run: |
36+
jupyter-book build .
37+
38+
- name: GitHub Pages Actions
39+
uses: peaceiris/actions-gh-pages@v3.6.1
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./_build/html

0 commit comments

Comments
 (0)