diff --git a/.github/workflows/rtd.yaml b/.github/workflows/rtd.yaml new file mode 100644 index 000000000..337f8e6b1 --- /dev/null +++ b/.github/workflows/rtd.yaml @@ -0,0 +1,19 @@ +name: readthedocs/preview + +on: + pull_request_target: + types: [opened] + branches: + - develop + +jobs: + rtdpreview: + if: "github.repository == 'MDAnalysis/UserGuide'" + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + pull-requests: write + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: "mdanalysis"