Browse Source

run on pull-request but don't deploy

Gregg Tavares 4 years ago
parent
commit
5f2094f374
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/deploy-to-gh-pages.yml

+ 2 - 0
.github/workflows/deploy-to-gh-pages.yml

@@ -3,6 +3,7 @@ on:
   push:
     branches:
       - master
+  pull_request:
 jobs:
   build-and-deploy:
     runs-on: ubuntu-latest
@@ -26,6 +27,7 @@ jobs:
           LESSON_BUILDER_ENV: production
 
       - name: Deploy 📦
+        if: ${{ github.event_name === 'push' }}
         uses: JamesIves/[email protected]
         with:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}