Skip to content

add readme and some stuff #15

add readme and some stuff

add readme and some stuff #15

name: Convert Notebooks and Deploy to GitHub Pages
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
permissions:
contents: write
pages: write
id-token: write
jobs:
convert-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: uv sync
- name: Run conversion script
run: uv run ./build.py
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
cname: # Optional: add custom domain if needed