fix no sign #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # 当推送到 main 分支时触发 | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Set up Node.js environment | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '23.x' # 使用适合 Vue 项目的 Node 版本 | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Build the Vue project | |
- name: Build Vue project | |
run: npm run build | |
# Deploy to GitHub Pages | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: dist # 构建后的文件夹(默认为 dist) |