Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WindyDante authored Oct 11, 2024
1 parent 5c23426 commit 72b3ae0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ jobs:
- name: Build project
run: npm run build

# 确保docs目录存在
- name: Verify docs directory exists
run: |
if [ ! -d "docs" ]; then
echo "docs directory not found."
exit 1
fi
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4 # 使用最新版本的 GitHub Pages 部署 Action
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # GitHub Pages 部署到 gh-pages 分支
folder: dist # 构建输出的文件夹
branch: master
folder: docs # 部署 docs 文件夹

0 comments on commit 72b3ae0

Please sign in to comment.