diff --git a/.github/workflows/python-docs.yml b/.github/workflows/python-docs.yml index 765ea53..5eba2aa 100644 --- a/.github/workflows/python-docs.yml +++ b/.github/workflows/python-docs.yml @@ -5,10 +5,10 @@ on: branches: ["main"] paths: - "py-denormalized/**" - # pull_request: - # branches: ["main"] - # paths: - # - "py-denormalized/**" + pull_request: + branches: ["main"] + paths: + - "py-denormalized/**" # security: restrict permissions for CI jobs. permissions: @@ -50,6 +50,8 @@ jobs: # Deploy the artifact to GitHub pages. # This is a separate job so that only actions/deploy-pages has the necessary permissions. deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + needs: build runs-on: ubuntu-latest permissions: