Skip to content

chore: ci

chore: ci #2

Workflow file for this run

name: deploy pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/web
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install pnpm 🤏🏻
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node 💚
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Build 🔧
run: |
pnpm install
pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: examples/web/dist