Skip to content

Commit e94370d

Browse files
committed
ci: 完善 GitHub Pages 部署配置 - 添加 clean 选项,禁用 Jekyll 构建,设置 GitHub Actions Bot 作为提交者
1 parent ed61d51 commit e94370d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ jobs:
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
5151
publish_dir: office-website/dist
5252
force_orphan: true # 确保使用干净的 gh-pages 分支
53+
clean: true # 部署前清理目标目录
54+
enable_jekyll: false # 禁用 Jekyll 构建
55+
user_name: 'github-actions[bot]'
56+
user_email: 'github-actions[bot]@users.noreply.github.com'
5357
commit_message: "deploy: 更新 GitHub Pages 站点"

0 commit comments

Comments
 (0)