Skip to content

fix: package.json scripts again. #37

fix: package.json scripts again.

fix: package.json scripts again. #37

# For more information see: https://github.com/marketplace/actions/deploy-to-github-pages
name: Build Site and Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup pnpm 📦
uses: pnpm/action-setup@v4.0.0
- name: Install and Build 🔧 # This project is built using pnpm and outputs the result to the 'dist' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
pnpm install
pnpm run build:docs
pnpm run build:examples
cp -r docs examples/dist
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.3
with:
folder: examples/dist # The folder the action should deploy.