Skip to content

Commit cf012c3

Browse files
committed
添加GitHub Actions故障排除指南
- 添加Actions权限检查步骤 - 添加Pages设置验证步骤 - 添加手动触发工作流的说明 - 测试GitHub Actions触发机制
1 parent f30a571 commit cf012c3

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

DEPLOYMENT.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,21 @@ npm run preview
7272
- 确保所有代码更改都推送到 `main` 分支
7373
- 构建过程中的任何 TypeScript 错误都会导致部署失败
7474
- 首次部署可能需要几分钟时间生效
75+
- 如果GitHub Actions没有触发,请检查仓库的Actions设置是否启用
76+
77+
## 故障排除步骤
78+
79+
如果GitHub Actions没有自动触发:
80+
81+
1. **检查Actions权限**
82+
- 进入仓库 Settings → Actions → General
83+
- 确保 "Allow all actions and reusable workflows" 已启用
84+
85+
2. **检查Pages设置**
86+
- 进入仓库 Settings → Pages
87+
- Source 必须设置为 "GitHub Actions"
88+
89+
3. **手动触发**
90+
- 进入仓库的 Actions 页面
91+
- 选择 "部署到 GitHub Pages" 工作流
92+
- 点击 "Run workflow" 手动触发

0 commit comments

Comments
 (0)