acoustic-carpenter-78188
06/22/2026, 4:51 PMnotify-docs job to publish.yml that, after a release publishes flyte + plugins to PyPI, sends a repository_dispatch (sdk-release) to unionai/unionai-docs.
Why
The Union.ai docs site builds its API reference from this SDK's docstrings. Today that regen is manual, so the published API docs lag new SDK releases. With this hook, a release automatically triggers `unionai-docs`'s regen-api-docs.yml workflow, which regenerates the reference and opens a draft PR for the docs team to review — no manual step, nothing auto-merged.
This is the producer side of the signal; the consumer workflow (unionai-docs#1114) is already merged and listening for repository_dispatch(sdk-release) (verified green via manual dispatch).
How auth works (GitHub App, not a PAT)
The job authenticates as the docsy-bot GitHub App and mints a short-lived, scoped token via actions/create-github-app-token (owner: unionai, repositories: unionai-docs). The App is installed only on unionai/unionai-docs — not on this repo or the flyteorg org. This repo only holds the App's credentials as secrets to request that cross-org token. (App over PAT: no expiry/rotation, scoped short-lived tokens, org-owned identity rather than a person's.)
Behavior / safety
• Release-only, and only after flyte-pypi succeeds (needs: [flyte-pypi, plugin-pypi]). Tolerates partial plugin-publish failures — the docs regen picks up whatever is live on PyPI.
• No-ops with a warning if the App secrets are absent — the token-mint step is skipped and the job exits 0, so it can never fail a release.
• One added job; no change to any existing publish step. No GitHub App is installed on this repo.
Setup status — ✅ secrets already added
The required repository secrets are already in place on flyteorg/flyte-sdk:
• DOCSY_BOT_APP_ID — the docsy-bot App's App ID ✅
• DOCSY_BOT_PRIVATE_KEY — the App's .pem private key ✅
(Same App is installed + configured on unionai/unionai-docs.) No app installation in flyteorg is needed. So once this PR merges, the release→docs loop is fully live — the next SDK release will auto-open a regenerated API-docs PR on unionai-docs.
Provenance
Docs-pipeline plumbing authored by docsy (Union.ai docs automation). Left for flyte-sdk maintainers to review + merge (docsy does not self-merge here). Tracking: DOC-1044.
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
06/22/2026, 4:51 PMacoustic-carpenter-78188
06/23/2026, 8:45 AM