|
@@ -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/[email protected]
|
|
uses: JamesIves/[email protected]
|
|
with:
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|