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 9a198bb commit a499fc6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,30 @@ jobs:
- name: Convert notebooks to HTML
run: |
mkdir -p ./notebooks_html
mkdir -p ./examples_html
for notebook in examples/*.ipynb; do
jupyter nbconvert --to html --output-dir ./examples_html "$notebook"
done
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '3.x'

- name: Build with Jekyll
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build with Jekyll
run: |
bundle exec jekyll build
env:
JEKYLL_ENV: production

- name: Move converted notebooks to _site
run: |
cp -r ./notebooks_html/* ./_site/examples/
cp -r ./examples_html/* ./_site/examples/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit a499fc6

Please sign in to comment.