Skip to content

Commit

Permalink
fix: only deploy on push to main not pr
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Aug 28, 2024
1 parent dfa41df commit aca1a2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:
# Only deploy on pyopensci owned repo / when pushed to main branch
deploy:
needs: build
if: github.ref == 'refs/heads/main' && github.repository_owner == 'pyOpenSci'
if: |
github.ref == 'refs/heads/main' &&
github.repository_owner == 'pyOpenSci' &&
github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down

0 comments on commit aca1a2c

Please sign in to comment.