Skip to content

Commit 3ada263

Browse files
Update jekyll-gh-pages.yml
1 parent 40793ff commit 3ada263

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/jekyll-gh-pages.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,33 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
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+
3149
- name: Setup Pages
3250
uses: actions/configure-pages@v5
51+
3352
- name: Build with Jekyll
3453
uses: actions/jekyll-build-pages@v1
3554
with:
3655
source: ./
37-
destination: ./examples
56+
destination: ./_site
57+
3858
- name: Upload artifact
3959
uses: actions/upload-pages-artifact@v3
4060

0 commit comments

Comments
 (0)