From b75f6ea5770abb19f934436d514b501355df4e09 Mon Sep 17 00:00:00 2001 From: jdhughes-usgs Date: Sat, 29 Aug 2020 12:36:07 -0400 Subject: [PATCH] ci(rtd): modify rtd workflow --- .docs/requirements.rtd.txt | 3 ++- .github/workflows/rtd.yml | 20 +++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.docs/requirements.rtd.txt b/.docs/requirements.rtd.txt index 982f580391..b4f71fd25c 100644 --- a/.docs/requirements.rtd.txt +++ b/.docs/requirements.rtd.txt @@ -1,7 +1,8 @@ nbsphinx nbsphinx_link -Ipython +ipython ipykernel +rtds_action git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master git+https://github.com/modflowpy/pymake.git@master diff --git a/.github/workflows/rtd.yml b/.github/workflows/rtd.yml index a6080dbe02..d6765763ff 100644 --- a/.github/workflows/rtd.yml +++ b/.github/workflows/rtd.yml @@ -2,20 +2,19 @@ name: Read the Docs on: push: - branches: [master, develop] + branches: [ master, develop ] pull_request: - branches: [develop] + branches: [ develop ] jobs: - build: - name: rtd + rtd_build: + name: Read the Docs build runs-on: ubuntu-latest strategy: fail-fast: false steps: - # check out repo - name: Checkout flopy repo uses: actions/checkout@v2 @@ -81,9 +80,16 @@ jobs: path: | .docs/_notebooks + # trigger rtd if previous job was successful + rtd: + name: Read the Docs trigger + needs: rtd_build + runs-on: ubuntu-latest + + if: + github.repository_owner == 'modflowpy' && github.event_name == 'push' + steps: - name: Trigger RTDs build on master and develop branches - if: - github.repository_owner == 'modflowpy' && github.event_name == 'push' uses: dfm/rtds-action@v1.0.0 with: webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}