Skip to content

Add GHA to deploy PR previews #1

Add GHA to deploy PR previews

Add GHA to deploy PR previews #1

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
branch: main
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm i && npm run build
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with: # https://github.com/marketplace/actions/deploy-pr-preview#configuration
source-dir: .
preview-branch: output
umbrella-dir: pr-preview
action: auto