Просмотр исходного кода

run on pull-request but don't deploy

Gregg Tavares 5 лет назад
Родитель
Сommit
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:
     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/github-pages-deploy-action@3.6.2
         with:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

粤ICP备19079148号