diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a68e5a18..6882c7c3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,5 @@ name: Publish docs via GitHub Pages -on: [push, workflow_dispatch] +on: [pull_request, push, workflow_dispatch] jobs: build: @@ -16,6 +16,7 @@ jobs: tools/populate-docs.sh - name: Deploy docs + if: github.ref == 'refs/heads/master' uses: mhausenblas/mkdocs-deploy-gh-pages@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file