Deploy only the site, not the repository's internals - #9
Merged
Merged
Conversation
`wrangler pages deploy .` uploaded the repository root, so capondargan.com served README.md, scripts/*.sh, .github/ruleset-main.json, and .github/workflows/ci.yml. The deploy now stages the site into _site/ and uploads that. A verify step fails the deploy if an internal path was staged, or if a file the site needs was dropped by the excludes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KX5fU4VDLe5MbyaytQJByw
tgwab-claude
enabled auto-merge (squash)
September 14, 2026 20:34
MichalAFerber
approved these changes
Sep 14, 2026
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.
wrangler pages deploy .uploads the repository root. On 2026-09-14, capondargan.com served these paths with HTTP 200:README.md,scripts/no-eval.sh,scripts/check-citations.sh,.github/ruleset-main.json, and.github/workflows/ci.yml.Change. The deploy job now stages the site into
_site/with rsync and uploads_site. The stage excludes.git,.github/,.gitignore,.nvmrc,scripts/, and Markdown. A verify step then fails the deploy in either direction:index.html,404.html,_headers,_redirects,robots.txt, or.well-known/security.txt.The README's deploy notes now describe the stage, and
.gitignoreignores_site/. This follows MichalAFerber/bethhudsonink.com#32, and adds the check against dropped files.Tested. I ran the exact
run:bodies extracted from this workflow's YAML against this branch:.well-known 404.html LICENSE _headers _redirects ads.txt apple-touch-icon.png assets cowan directions favicon.ico humans.txt icon-192.png icon-512-maskable.png icon-512.png index.html llms.txt og.png providers resources robots.txt site.webmanifest sitemap-index.xml sitemap.xml.README.mdcopied into_site/, verify exits 1._headersremoved, verify exits 1.Not yet verified. The PR preview deploy and the production deploy after merge. After each one I'll check that
/README.mdreturns 404 and/returns 200. The edge may keep serving previously cached copies of the removed files until their cache lifetime ends.Found while working on #8; this PR does not close it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KX5fU4VDLe5MbyaytQJByw