Skip to content

Update nwtgck/actions-netlify action to v3 #86

Update nwtgck/actions-netlify action to v3

Update nwtgck/actions-netlify action to v3 #86

Workflow file for this run

name: Preview
on:
pull_request:
pull_request_target:
types:
- labeled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-22.04
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) ||
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
cache: npm
- run: npm ci
- run: npm run build
- uses: nwtgck/[email protected]
with:
publish-dir: docs
alias: deploy-preview-${{ github.event.number }}
enable-commit-comment: false
fails-without-credentials: true
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
timeout-minutes: 1
- uses: actions/upload-artifact@v4
with:
path: docs