Skip to content

feat: add CNAME file to public output for custom domain#5085

Merged
DeepDiver1975 merged 1 commit intomasterfrom
feat/add-cname-file
Apr 15, 2026
Merged

feat: add CNAME file to public output for custom domain#5085
DeepDiver1975 merged 1 commit intomasterfrom
feat/add-cname-file

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Member

Summary

  • Adds echo 'doc.owncloud.com' > public/CNAME as a post-build step in the CI workflow
  • Ensures the GitHub Pages custom domain (doc.owncloud.com) is preserved on every deployment
  • Without this file in the published output, GitHub Pages resets the custom domain setting after each push to gh-pages

Why this approach

The public/ directory is gitignored (it is a build artifact), so the CNAME file must be created as part of the build pipeline rather than committed as a source file. Adding it immediately after bin/optimize_crawl -x ensures it is present before peaceiris/actions-gh-pages publishes ./public to the gh-pages branch.

Test plan

  • Verify the CI build step now produces public/CNAME with content doc.owncloud.com
  • Confirm the gh-pages branch contains CNAME after a successful deploy
  • Check that https://doc.owncloud.com continues to resolve correctly after deploying

🤖 Generated with Claude Code

Write doc.owncloud.com into public/CNAME after the Antora build
so that GitHub Pages preserves the custom domain on every deploy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DeepDiver1975 DeepDiver1975 marked this pull request as ready for review April 15, 2026 07:06
@DeepDiver1975 DeepDiver1975 requested a review from mmattel April 15, 2026 07:06
@DeepDiver1975 DeepDiver1975 merged commit 7076345 into master Apr 15, 2026
2 checks passed
@DeepDiver1975 DeepDiver1975 deleted the feat/add-cname-file branch April 15, 2026 07:23
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.

2 participants