Skip to content

ci(pages): republish the redirector only when it changes - #303

Merged
chaxus merged 1 commit into
mainfrom
ci/pages-redirector-paths
Nov 2, 2026
Merged

chaxus merged 1 commit into
mainfrom
ci/pages-redirector-paths

Conversation

@chaxus

@chaxus chaxus commented Nov 2, 2026

Copy link
Copy Markdown
Member

pages-build-site.yml publishes only redirect/ (index.html + 404.html) to GitHub Pages, so old ranuts.github.io/document/* links forward to edit.chaxus.com with their path and query.

It ran on every push to main. That produced 100 github-pages deployments since August, while redirect/ has changed once since it shipped on 2026-07-05. GitHub Pages keeps serving the last published artifact, so republishing identical files did nothing.

Change

  • push now has paths: [redirect/**, .github/workflows/pages-build-site.yml].
  • workflow_dispatch is kept for manual republishing.
  • GitHub Pages stays enabled: it is what serves the redirect.

Verification

  • curl https://ranuts.github.io/document/ currently returns the current redirect/index.html, so the last published artifact is still being served.
  • test/unit/workflow-contract.test.ts: 68 passed. Prettier passes.

Record: docs/explorations/2026-11-02-pages-redirector-paths.md

🤖 Generated with Claude Code

GitHub Pages keeps serving the last published artifact, but the workflow
redeployed the same two redirect/ files on every push to main: 100
github-pages deployments since August for a directory changed once. Run it
on changes to redirect/ or the workflow itself, plus workflow_dispatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chaxus
chaxus enabled auto-merge (rebase) November 2, 2026 03:18
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying document with  Cloudflare Pages  Cloudflare Pages

Latest commit: 75cac0e
Status: ✅  Deploy successful!
Preview URL: https://e2c72df5.document-7hm.pages.dev
Branch Preview URL: https://ci-pages-redirector-paths.document-7hm.pages.dev

View logs

@chaxus
chaxus merged commit cf4e9a7 into main Nov 2, 2026
19 checks passed
@chaxus
chaxus deleted the ci/pages-redirector-paths branch November 2, 2026 03:33
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