Skip to content

fix workflow

fix workflow #2

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master # 或你的默认分支名
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18' # 选择合适的Node版本
# 进入 web 目录
- run: cd web
- run: npm install
- run: npm run build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Vite构建的输出目录