Configure Hugo GitHub Pages deployment and custom domain publishing - #7
Merged
Merged
Conversation
Co-authored-by: lazyparser <1802104+lazyparser@users.noreply.github.com>
Co-authored-by: lazyparser <1802104+lazyparser@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
lazyparser
September 14, 2026 09:02
View session
lazyparser
marked this pull request as ready for review
September 14, 2026 09:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
合并后
hellollvm.org未反映更新,根因是仓库只有 Hugo 构建流程,没有将public/部署到 GitHub Pages。此次变更补齐发布链路,并确保自定义域名随构建产物一起发布。Deployment workflow(新增)
.github/workflows/hugo-deploy.yml,在main/masterpush 或手动触发时执行:public/制品Custom domain publishing(新增)
static/CNAME,内容为hellollvm.org,确保 Hugo 构建后产物包含public/CNAME,由 Pages 正确应用自定义域名。Build semantics(调整)
hugo --gc --minify),与站点现有 Hugo 配置一致,避免在 workflow 中覆盖站点域名配置。