Skip to content

feat: add hooks for managing credentials and WebLLM models #1

feat: add hooks for managing credentials and WebLLM models

feat: add hooks for managing credentials and WebLLM models #1

Workflow file for this run

name: Deploy demo
# Builds the Vite demo (which consumes the freshly built library from ../dist)
# and publishes it to GitHub Pages. Enable Pages once under
# Settings → Pages → Source: "GitHub Actions".
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Never run two Pages deploys at once; a newer push supersedes an in-flight one.
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- name: Install & build library
run: |
npm ci
npm run build
- name: Install & build demo
working-directory: demo
run: |
npm ci
npm run build
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: demo/dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4