fix(ci): add OpenAPI spec download to GitHub Pages build#494
Conversation
The GitHub Pages workflow was missing the download_openapi.sh step that fetches OpenAPI specs for docs versions that don't ship api.json in git (v1.1+). This caused the REST API reference page for v1.2 to be empty in production. Netlify deploy previews were unaffected as netlify.toml already includes this step. Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
✅ Deploy Preview for cozystack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new build step is added to the Hugo GitHub Actions workflow that downloads OpenAPI specifications before the Hugo build, authenticated via GitHub token environment variable. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
hugo.yaml) was missing the./hack/download_openapi.shstep beforehugo --gc --minifyapi.jsonin production, since v1.2+ rely on build-time download rather than a committed filenetlify.tomlalready includes this stepTest plan
/docs/v1.2/cozystack-api/rest//docs/v1.2/cozystack-api/api.jsonSummary by CodeRabbit