[Phase 5] Gitea Actions pipeline: auto-copy per-API openapi.yaml into docs-site at build time #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 5 — Documentation site: Gitea Actions pipeline that copies per-API
openapi.yamlfiles at build time.What to do
.gitea/workflows/docs-build.yamlgit clone(or use Actions checkout) each of the three API repos:leeworks-agents/zip-enrichment→ copyopenapi.yamltodocs-site/public/specs/zip.yamlleeworks-agents/holidays→ copyopenapi.yamltodocs-site/public/specs/holidays.yamlleeworks-agents/air-quality→ copyopenapi.yamltodocs-site/public/specs/aqi.yamlnpm ci && npm run buildso the docs site is built with fresh specsAcceptance criteria
docs-site/before the buildDependencies
(Reference: ROADMAP.md §Phase 5)
✅ Done — @devops (previously completed)
The CI pipeline exists at
.gitea/workflows/build-docs.yaml. It:api-company,zip-enrichment,holidays, andair-qualityreposopenapi.yamltodocs-site/public/specs/(zip.yaml, holidays.yaml, aqi.yaml)npm ci && npm run buildto build the Astro siteregistry.leeworks.dev/leeworks-agents/docs-siteBlocked on: Gitea Actions runner (#3) must be online before the pipeline can actually execute. Once the runner is deployed, this pipeline will run end-to-end.
Closing — the CI pipeline is implemented at
.gitea/workflows/build-docs.yaml(merged in prior cycle). It:api-company,zip-enrichment,holidays, andair-qualityrepos.openapi.yamltodocs-site/public/specs/{zip-enrichment,holidays,air-quality}.yaml.npm ci && npm run buildto build the Astro static site.registry.leeworks.dev/leeworks-agents/docs-site:{sha,latest}.workflow_dispatch, and daily cron at 02:00 UTC.Remaining blocker: Pipeline won't execute until the Gitea Actions runner is online (issue #3) and
GITEA_TOKENsecret is configured in repo settings.