ci-and-automation.mdMarkdown, rendered
CI and Automation Reference
Deterministic CI Pattern
- Install/pin toolchain.
- Run conversion with checked-in defaults.
- Write to deterministic output path.
- Publish artifacts from that exact path.
Example pattern:
export SOURCE_DATE_EPOCH=1700000000
pandoc --defaults pdf.defaults.yaml docs/intro.md docs/architecture.md docs/usage.md
Hook Behavior Policy
For optional PDF artifacts:
- If converter exists: generate PDF.
- If converter missing: warn and skip.
- Include remediation command.
For mandatory PDF artifacts:
- fail with actionable installation guidance.
Tool Bootstrap Guidance
- Prefer project runtime manager (
mise) when available. - Alternative: containerized
pandocfor consistent automation environments.
Operational Notes
- Keep log output concise and actionable.
- Separate content-validation failures from toolchain failures.
- Avoid silent fallbacks that hide missing output artifacts.