Skip to content

fix(cd): switch to gh-pages branch deployment with force-push - #175

Merged
Gaubee merged 1 commit into
mainfrom
fix/cd-gh-pages-175
Jan 7, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/cd-gh-pages-175

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

修改内容

  • 移除 任务,不再使用 。
  • 在 任务中,使用 将构建产物直接推送到 分支。
  • 统一了 self-hosted 和 github-hosted 的部署逻辑。

原因

  • 旧版 在某些情况下会出现上传卡住或失败的问题。
  • 使用 分支配合 force-push 可以确保不保留历史记录,减小仓库体积。

注意事项

合并此 PR 后,请确保仓库的 Settings > Pages > Build and deployment > Source 已设置为 Deploy from a branch,并将分支选择为 gh-pages (/root)。

- Remove actions/upload-pages-artifact and actions/deploy-pages
- Use direct git push -f to gh-pages branch for both self-hosted and github-hosted runners
- Ensures no history bloat and avoids artifact upload issues
@Gaubee
Gaubee merged commit 049abdb into main Jan 7, 2026
5 checks passed
@Gaubee
Gaubee deleted the fix/cd-gh-pages-175 branch January 7, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant