Преглед изворни кода

run on pull-request but don't deploy

Gregg Tavares пре 5 година
родитељ
комит
5f2094f374
1 измењених фајлова са 2 додато и 0 уклоњено
  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:
   push:
     branches:
     branches:
       - master
       - master
+  pull_request:
 jobs:
 jobs:
   build-and-deploy:
   build-and-deploy:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
@@ -26,6 +27,7 @@ jobs:
           LESSON_BUILDER_ENV: production
           LESSON_BUILDER_ENV: production
 
 
       - name: Deploy 📦
       - name: Deploy 📦
+        if: ${{ github.event_name === 'push' }}
         uses: JamesIves/github-pages-deploy-action@3.6.2
         uses: JamesIves/github-pages-deploy-action@3.6.2
         with:
         with:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

粤ICP备19079148号