Skip to content

Commit 4401a45

Browse files
authored
Merge pull request #68 from jquery-validation/copilot/change-workflow-for-pr-testing
Run build on PRs without deploying to GitHub Pages
2 parents 09eab8d + 22c8151 commit 4401a45

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
pull_request:
89
workflow_dispatch:
910

1011
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -50,6 +51,7 @@ jobs:
5051
uses: actions/upload-pages-artifact@v3
5152

5253
deploy:
54+
if: github.event_name != 'pull_request'
5355
environment:
5456
name: github-pages
5557
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)