-
Notifications
You must be signed in to change notification settings - Fork 63
35 lines (30 loc) · 940 Bytes
/
build.yaml
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
name: Build Pages
on: [push]
jobs:
build-and-deploy:
name: 📃 Website Build
runs-on: ubuntu-latest
steps:
- name: 🔔 Check out
uses: actions/checkout@v3
- name: 🏗️ python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: ⬇️ Python Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.4
installer-parallel: true
- name: ⬇️ Python Dependencies
run: poetry install --sync
- name: 🚧 Jupyter build
run: poetry run jupyter book build docs
- name: 📰 Publish docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./docs/_build/html
git-config-name: "github-actions[bot]"
git-config-email: "github-actions[bot]@users.noreply.github.com"
commit-message: 🎉 Book deployed