From 53038e85ed01417cf4270487c3af59651c986c64 Mon Sep 17 00:00:00 2001 From: Calum Macdonald Date: Thu, 6 Feb 2025 10:49:58 +0000 Subject: [PATCH] rename as demo --- .github/workflows/convert-notebook.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/convert-notebook.yml b/.github/workflows/convert-notebook.yml index e69de29..798aba1 100644 --- a/.github/workflows/convert-notebook.yml +++ b/.github/workflows/convert-notebook.yml @@ -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 'github-actions@github.com' + git add docs/demo.html + git commit -m "Auto-update notebook HTML" + git push