Skip to content

Commit

Permalink
Update jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Finegan authored Jul 17, 2024
1 parent 40793ff commit 3ada263
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,33 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Jupyter nbconvert
run: |
python -m pip install --upgrade pip
pip install nbconvert
- name: Convert notebooks to HTML
run: |
mkdir -p ./_site/examples
for notebook in examples/*.ipynb; do
jupyter nbconvert --to html --output-dir ./_site/examples "$notebook"
done
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./examples
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down

0 comments on commit 3ada263

Please sign in to comment.