diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02022a750d..41300db1e4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -57,11 +57,7 @@ jobs: path: docs/build/html/ - name: Deploy to GitHub Pages #Push to gh-pages branch 1 uses: peaceiris/actions-gh-pages@v3 - if: ${{ - github.event_name == 'pull_request' && - github.event.action == 'closed' && - github.event.pull_request.merged == true }} -# github.event.pull_request.base.ref == 'master' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}