Delete index.html #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Jupyter Notebook to GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Install Jupyter | ||
run: | | ||
python -m venv myenv | ||
source myenv/bin/activate | ||
pip install jupyter | ||
- name: Convert notebook to HTML | ||
run: | | ||
source myenv/bin/activate | ||
jupyter nbconvert --to html mynotebook.ipynb | ||
- name: Debug: List files | ||
run: | | ||
ls -al | ||
ls -al myenv/bin | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./ |