Skip to content

Commit 8a39692

Browse files
committed
fix(workflows): 🐛 github actions自动提交代码至gh-pages分支时,创建cname文件
1 parent 5de5db0 commit 8a39692

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy-to-gh-page.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
# 4. 构建项目
4040
- name: Build project
41-
run: pnpm run build:no-lint
41+
run: pnpm run build:no-base
4242

4343
# 5. 部署到 gh-pages 分支(只上传 dist 内容)
4444
- name: Deploy to GitHub Pages
@@ -49,6 +49,8 @@ jobs:
4949
publish_dir: ./dist
5050
# 强制覆盖旧内容,避免残留文件
5151
force_orphan: true
52+
# 添加cname文件到gh-pages分支
53+
cname: github.jfork.top
5254

5355
# 6. 同步代码至gitee
5456
- name: Sync to Gitee

0 commit comments

Comments
 (0)