Skip to content

Commit ecd004c

Browse files
committed
ci: restrict deploy job to push events only
Only run the deploy job on push to main, not on pull requests.
1 parent 0a9da9f commit ecd004c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757

5858
deploy:
5959
needs: build
60+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
6061
runs-on: ubuntu-latest
6162
permissions:
6263
pages: write

0 commit comments

Comments
 (0)