Skip to content

chore: 更新文档中的资源文件路径 #277

chore: 更新文档中的资源文件路径

chore: 更新文档中的资源文件路径 #277

Workflow file for this run

name: Vue Auto Deploy
on:
push:
branches: [ "main", "master" ] # 监听主分支的代码推送
permissions:
contents: write # 允许写入gh-pages分支
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4 # 检出代码
- name: Install Dependencies
run: npm install --legacy-peer-deps
- name: Build Project
run: npm run build # 执行打包命令
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # 部署到gh-pages分支
folder: dist # 指定打包目录
github_token: ${{ secrets.GITHUB_TOKEN }}