chore: gate Vercel deployments to docs-only changes#462
Conversation
Vercel was triggering on every PR and push including Rust-only changes, producing spurious status-check failures on non-docs PRs. - .vercelignore: ignore everything except docs/** - docs-gate.yml: path-filter workflow; GitHub only dispatches the Vercel webhook when docs/** files changed — no webhook, no build
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Workflow was failing because it had no jobs section. GitHub requires at least one job in every workflow file. Added a simple gate job that just echoes confirmation. The workflow still serves as a path filter to Vercel via GitHub's webhook system.
CSP benchmarks
Prover time, peak RSS, peak heap, and verifier time are arithmetic means across the iterations. Peak heap comes from the largest Each metric cell shows the current value followed by the percentage delta against the latest successful Results
|
|
Closing this — after investigation, the deploy-on-every-PR behavior is a Vercel project setting (dashboard) and cannot be controlled from repo files: GitHub Actions |
Problem
Vercel fires on every PR and push regardless of whether
docs/changed. On non-docs PRs produces a spuriousVercel: FAILUREstatus check — confusing reviewers and wasting build minutes on commits that have nothing to do with the docs site.Solution
Two inert files — no
vercel.json, no jobs, no secrets needed:.vercelignore— ignore everything exceptdocs/**.github/workflows/docs-gate.yml— path-filter workflow; GitHubonly dispatches the Vercel webhook when
docs/**files changeThe workflow has no jobs; it exists purely as a filter gate.