Skip to content

fix:type err

fix:type err #12

Workflow file for this run

name: Next.js Deploy to GitHub Pages
on:
push:
branches:
- main # 每次推送到 main 分支时触发
jobs:
build:
runs-on: ubuntu-latest # 使用最新的 Ubuntu 环境
steps:
# Step 1: 检出代码
- name: Checkout code
uses: actions/checkout@v2
# Step 2: 设置 Node.js 环境
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # 设置 Node.js 版本,确保和你的项目兼容
# Step 3: 安装依赖
- name: Install dependencies
run: npm install
# Step 4: 构建项目
- name: Build
run: npm run build
# Step 6: 部署到 GitHub Pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: build
folder: out