Skip to content

Commit 9ca395a

Browse files
authored
Merge pull request #15 from imcf/ci/apidocs-dispatch
ci: auto-rebuild apidocs on release
2 parents 1d213a2 + 4ff30f5 commit 9ca395a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,17 @@ jobs:
4848

4949
- name: Publish to PyPI
5050
uses: pypa/gh-action-pypi-publish@release/v1
51+
52+
# Rebuild the org-wide pdoc apidocs site so it picks up the new version.
53+
apidocs:
54+
needs: release
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Trigger imcf.github.io apidocs rebuild
58+
uses: peter-evans/repository-dispatch@v3
59+
with:
60+
# Fine-grained PAT with "Contents: write" on imcf/imcf.github.io,
61+
# stored as the APIDOCS_DISPATCH_TOKEN secret in this repo.
62+
token: ${{ secrets.APIDOCS_DISPATCH_TOKEN }}
63+
repository: imcf/imcf.github.io
64+
event-type: dispatch-event

0 commit comments

Comments
 (0)