2021-10-11 11:52:15 +02:00
|
|
|
name: 'Netlify Preview Deploy'
|
|
|
|
|
|
|
|
on:
|
2021-10-14 06:58:31 +02:00
|
|
|
pull_request_target:
|
2021-10-14 07:12:07 +02:00
|
|
|
types: ['opened', 'synchronize']
|
2021-10-11 11:52:15 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: "Deploy to Netlify"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: jsmrcaga/action-netlify-deploy@master
|
|
|
|
with:
|
2021-10-14 06:58:31 +02:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
2021-10-11 11:52:15 +02:00
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|
|
|
|
BUILD_DIRECTORY: "dist"
|
2021-10-14 06:58:31 +02:00
|
|
|
- name: Post on PR
|
2021-10-11 11:52:15 +02:00
|
|
|
uses: nwtgck/actions-netlify@v1.1
|
|
|
|
with:
|
2021-10-12 11:30:09 +02:00
|
|
|
publish-dir: "dist"
|
2021-10-11 11:52:15 +02:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
deploy-message: "Deploy from GitHub Actions"
|
|
|
|
enable-pull-request-comment: true
|
|
|
|
enable-commit-comment: false
|
|
|
|
overwrites-pull-request-comment: true
|
|
|
|
env:
|
2021-10-14 06:58:31 +02:00
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
2021-10-11 11:52:15 +02:00
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}
|