ci: notify the docs portal after deploy - #28
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: 1 review is currently available. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughThe documentation deployment workflow now sends a ChangesDocumentation publication
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The deployment workflow now notifies the portal after publishing documentation. No actionable merge-blocking risk is established in the supplied change context. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
docs.byteveda.org/dagron/is a mirror of this repo's docs build, pulled by the portal inByteVeda/byteveda.site. Until now the portal only rebuilt on its daily cron, so a docs publish here could sit unmirrored for nearly a day. ByteVeda/byteveda.site#296 added atool-docs-publishedrepository_dispatchtrigger; this PR sends that event from thedeployjob, immediately after Pages goes live.The
run_idin the payload is the part worth reading twice. At the moment this step runs, the run is still in progress, so the portal'sgh run list --status successlookup cannot see it and would mirror the previous build — the deploy would look like it had done nothing. Passing the id lets the portal pin this slug to this run. Thedocs-distartifact is uploaded back in thebuildjob, so it is already downloadable by then.Requires the org secret
DOCS_DISPATCH_TOKEN(Contents: read/write onByteVeda/byteveda.siteonly), which is already configured for this repo. If the dispatch ever fails — rotated token, revoked access — this step goes red while Pages itself stays published, since the deploy step ran before it; the portal's daily cron is the fallback in that case.Summary by CodeRabbit