Skip to content

Commit e2872e9

Browse files
authored
Merge pull request #1 from AdaptiveMotorControlLab/MMathisLab-actions2
Create publish-book.yml
2 parents e1e7ae7 + aa3bf4d commit e2872e9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/publish-book.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish-book
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy-book:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python 3.10
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip setuptools
22+
python -m pip install .[docs]
23+
pip install jupyter-book sphinxcontrib-mermaid
24+
25+
- name: Build the book
26+
run: |
27+
jupyter-book build .
28+
29+
- name: GitHub Pages action
30+
uses: peaceiris/[email protected]
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./_build/html

0 commit comments

Comments
 (0)