File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,33 @@ jobs:
28
28
steps :
29
29
- name : Checkout
30
30
uses : actions/checkout@v4
31
+
32
+ - name : Set up Python
33
+ uses : actions/setup-python@v4
34
+ with :
35
+ python-version : ' 3.x'
36
+
37
+ - name : Install Jupyter nbconvert
38
+ run : |
39
+ python -m pip install --upgrade pip
40
+ pip install nbconvert
41
+
42
+ - name : Convert notebooks to HTML
43
+ run : |
44
+ mkdir -p ./_site/examples
45
+ for notebook in examples/*.ipynb; do
46
+ jupyter nbconvert --to html --output-dir ./_site/examples "$notebook"
47
+ done
48
+
31
49
- name : Setup Pages
32
50
uses : actions/configure-pages@v5
51
+
33
52
- name : Build with Jekyll
34
53
uses : actions/jekyll-build-pages@v1
35
54
with :
36
55
source : ./
37
- destination : ./examples
56
+ destination : ./_site
57
+
38
58
- name : Upload artifact
39
59
uses : actions/upload-pages-artifact@v3
40
60
You can’t perform that action at this time.
0 commit comments