Skip to content

Deploy to Cloudflare Pages at button-pusher.tintan.do - #1

Merged
tintando merged 1 commit into
mainfrom
cloudflare-pages
Oct 5, 2026
Merged

tintando merged 1 commit into
mainfrom
cloudflare-pages

Conversation

@tintando

@tintando tintando commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Adds a cloudflare job to the pages workflow: the same _site/ is published with wrangler pages deploy (project button-pusher, branch main) next to the existing GitHub Pages deploy, which stays until button-pusher.tintan.do is verified.

  • The cloudflare job runs only on main in tintando's repository, with permissions: {}. The workflow has no pull_request trigger, so fork PRs never see the token.
  • Pages permissions move from the workflow onto the deploy job, and every action in pages.yaml is pinned to a commit SHA.
  • Adds 404.html, so unknown paths get a real 404 instead of Cloudflare Pages' fallback to index.html.
  • The README links and repository map now point at https://button-pusher.tintan.do/.

Checked locally: npm run check, tubecheck and node --check pass, and tools/browsercheck.mjs against the assembled site served at / reports no console errors.

Adds a cloudflare job to the pages workflow that publishes the same _site/ with wrangler pages deploy, next to the GitHub Pages deploy, which stays until the new host is verified. The Cloudflare job runs on main only, in the owner's repository only, with no GitHub token permissions; the Pages permissions move from the workflow onto the job that needs them. Every action in the workflow is pinned to a commit SHA.

Adds a 404.html to the site, so Cloudflare Pages answers unknown paths with a real 404 instead of falling back to index.html, whose relative paths break below the root. The README links and repository map point at button-pusher.tintan.do.
@tintando
tintando merged commit 4fbb296 into main Oct 5, 2026
1 check passed
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