diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c27d3578..1ea98d08 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,7 +59,7 @@ jobs: - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{ github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == github.repository && github.repository_owner == 'dipy'}} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_build/html