Skip to content

Commit c932937

Browse files
authored
ci(release): notify docs to regenerate the API reference on release (#169)
After publishing to GitHub and PyPI, send a repository_dispatch (sdk-release) to codellm-devkit/docs carrying the released tag, so the docs repo regenerates and opens a PR for the Python API reference matched to this version. Requires a DOCS_DISPATCH_TOKEN secret: a PAT/fine-grained token with contents:write on codellm-devkit/docs.
1 parent d925a1d commit c932937

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,15 @@ jobs:
126126
127127
- name: Publish package distributions to PyPI
128128
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}
129+
130+
- name: Trigger docs API-reference update
131+
# After a successful release, tell the docs repo to regenerate and PR the
132+
# Python API reference against this tag. Requires a DOCS_DISPATCH_TOKEN
133+
# secret: a PAT (or fine-grained token) with contents:write on
134+
# codellm-devkit/docs. See docs-astro .github/workflows/update-api-docs.yml.
135+
uses: peter-evans/repository-dispatch@v3
136+
with:
137+
token: ${{ secrets.DOCS_DISPATCH_TOKEN }}
138+
repository: codellm-devkit/docs
139+
event-type: sdk-release
140+
client-payload: '{"ref": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)