Skip to content

Deploy all demos

Deploy all demos #23

Workflow file for this run

name: demo
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
- run: npm ci
- run: STORYBOOK_DEPLOY=true npm run storybook:build -- -o dist
- run: (cd examples/react && npm ci && npm run build -- --outDir ../../dist/react)
- run: (cd examples/vue && npm ci && npm run build -- --outDir ../../dist/vue)
- run: (cd examples/svelte && npm ci && npm run build -- --outDir ../../dist/svelte)
- run: (cd examples/solid && npm ci && npm run build -- --outDir ../../dist/solid)
- run: (cd examples/angular && npm ci && npm run build && mv ./dist ../../dist/angular)
- run: (cd examples/preact && npm ci && npm run build -- --outDir ../../dist/preact)
# - run: (cd examples/qwik && npm ci && npm run build -- --outDir ../../dist/qwik)
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: demo