Skip to content

docs: readme

docs: readme #6

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- main # 假设您的主分支是 main
permissions:
write-all
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install Dependencies 📦
run: pnpm install
- name: Build 🏗️
run: pnpm run build
- name: Deploy to GitHub Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist