Skip to content

Commit 9642c6c

Browse files
asizikovCopilot
andcommitted
ci: run checks on pull requests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4f880e9 commit 9642c6c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
permissions:
912
contents: read
@@ -40,14 +43,17 @@ jobs:
4043
run: npm run build
4144

4245
- name: Setup Pages
46+
if: github.event_name == 'push'
4347
uses: actions/configure-pages@v5
4448

4549
- name: Upload artifact
50+
if: github.event_name == 'push'
4651
uses: actions/upload-pages-artifact@v3
4752
with:
4853
path: ./dist
4954

5055
deploy:
56+
if: github.event_name == 'push'
5157
environment:
5258
name: github-pages
5359
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)