Fixed deploy on PR
This commit is contained in:
parent
6ccd1e43bc
commit
124b24ab76
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pull-request.yml
vendored
8
.github/workflows/pull-request.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
name: 'Netlify Preview Deploy'
|
name: 'Netlify Preview Deploy'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types: ['opened', 'synchronize']
|
types: ['opened', 'synchronize']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -13,10 +13,10 @@ jobs:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: jsmrcaga/action-netlify-deploy@master
|
- uses: jsmrcaga/action-netlify-deploy@master
|
||||||
with:
|
with:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH2_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|
||||||
BUILD_DIRECTORY: "dist"
|
BUILD_DIRECTORY: "dist"
|
||||||
- name: Deploy to Netlify
|
- name: Post on PR
|
||||||
uses: nwtgck/actions-netlify@v1.1
|
uses: nwtgck/actions-netlify@v1.1
|
||||||
with:
|
with:
|
||||||
publish-dir: "dist"
|
publish-dir: "dist"
|
||||||
|
@ -26,5 +26,5 @@ jobs:
|
||||||
enable-commit-comment: false
|
enable-commit-comment: false
|
||||||
overwrites-pull-request-comment: true
|
overwrites-pull-request-comment: true
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH2_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|
||||||
|
|
Loading…
Reference in a new issue