From a59b426f06f6a48fd712bbb7c3beed8f54c69d33 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Fri, 12 Apr 2024 12:38:35 -0400 Subject: [PATCH] ci(rtd): trigger rtd build if ci tests succeed (#149) --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9fea5f..3c34589 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,4 +170,17 @@ jobs: env: REPOS_PATH: ${{ github.workspace }} GITHUB_TOKEN: ${{ github.token }} - run: pytest -v -n auto --durations 0 test_download.py \ No newline at end of file + run: pytest -v -n auto --durations 0 test_download.py + + rtd: + name: Docs + needs: test + runs-on: ubuntu-22.04 + if: github.repository_owner == 'MODFLOW-USGS' && github.event_name == 'push' + steps: + - name: Trigger RTD + uses: dfm/rtds-action@v1 + with: + webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }} + webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }} + commit_ref: ${{ github.ref }}