Skip to content

Add: PR Preview

Add: PR Preview #1

Workflow file for this run

name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Bun
if: github.event.action != 'closed'
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build and check
if: github.event.action != 'closed'
run: |
bun install --frozen-lockfile
bun run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto