Skip to content

Commit

Permalink
only run deploy when merged
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Nov 14, 2024
1 parent 70eb967 commit 8c3422f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8c3422f

Please sign in to comment.