Skip to content

Commit

Permalink
rename as demo
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Feb 6, 2025
1 parent ca78950 commit 53038e8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/convert-notebook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Convert Jupyter Notebook to HTML

on:
push:
branches:
- main

jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Jupyter
run: pip install jupyter

- name: Convert Notebook
run: jupyter nbconvert --to html demo.ipynb

- name: Move HTML to Docs
run: mv demo.html docs/

- name: Commit and Push
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add docs/demo.html
git commit -m "Auto-update notebook HTML"
git push

0 comments on commit 53038e8

Please sign in to comment.