Skip to content

Commit 5d492ad

Browse files
committed
ENH: Trigger RTD builds with nightly GHA builds
On main, after the GitHub Action cronjob nightly builds and pushes to the `latest` GitHub Release, we trigger a RTD build to update the published documentation.
1 parent b3e162b commit 5d492ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/Doxygen.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
env:
5959
GH_TOKEN: ${{ secrets.github_token }}
6060

61+
- name: Trigger ReadTheDocs build
62+
if: github.ref == 'refs/heads/main'
63+
run: |
64+
curl -X POST \
65+
-d "token=${{ secrets.rtd_webhook_secret }}" \
66+
-H "Content-Type: application/json" \
67+
"https://readthedocs.org/api/v2/webhook/itkdoxygen/290126/"
68+
6169
- name: Prepare HTML for GitHub Pages
6270
if: github.ref == 'refs/heads/main'
6371
run: |

0 commit comments

Comments
 (0)