File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : deploy-book
2+ on :
3+ push :
4+ branches : [ main ]
5+ pull_request :
6+ permissions :
7+ contents : read
8+ pages : write
9+ id-token : write
10+ concurrency :
11+ group : " pages"
12+ cancel-in-progress : true
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.11"
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install -r requirements.txt
25+ - name : Build Jupyter Book (force execute)
26+ run : |
27+ jupyter-book build . --all
28+ - name : Upload artifact
29+ uses : actions/upload-pages-artifact@v3
30+ with :
31+ path : _build/html
32+ deploy :
33+ needs : build
34+ environment :
35+ name : github-pages
36+ url : ${{ steps.deployment.outputs.page_url }}
37+ runs-on : ubuntu-latest
38+ steps :
39+ - id : deployment
40+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments