Skip to content

Deploy Example to GitHub Pages #7

Deploy Example to GitHub Pages

Deploy Example to GitHub Pages #7

name: Deploy Example to GitHub Pages
on:
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.15.6
- uses: actions/[email protected]
with:
node-version: 20.x
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build Example
run: cd example && npm install && npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: example/dist