forked from BelligerG/PythonAnalysisLessons
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 861 Bytes
/
deploy_book.yml
File metadata and controls
39 lines (34 loc) · 861 Bytes
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
name: deploy-book
on:
push:
branches:
- '*'
- '*/*'
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: conda env create
run: |
source '/usr/share/miniconda/etc/profile.d/conda.sh'
conda create -n jbook -c conda-forge jupyter-book python=3.11
- name: Build the book
run: |
source '/usr/share/miniconda/etc/profile.d/conda.sh'
conda activate jbook
jupyter-book build .
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '_build/html/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2