Why this matters
Content changes can break a static build just like code changes can. CI gives you a repeatable gate before publication.
Setup
Run Astro check and build in the deployment workflow. Keep dependency install steps explicit so the workflow is easy to debug.
Implementation notes
If content schema validation fails, fix the Markdown file instead of weakening the schema. The schema protects the quality of every published page.
Final checklist
- CI runs on pushes
- Schema errors fail the build
- Deployment waits for successful build