Skip to content

Commit

Permalink
ci: add preview pages as part of pull action
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantam committed Dec 13, 2023
1 parent 12f8d32 commit e40464b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Cached LFS checkout
uses: nschloe/[email protected]

- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: npm

- name: Install and Build
run: |
npm clean-install
npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/

0 comments on commit e40464b

Please sign in to comment.