Skip to content

Commit

Permalink
Create deploy-pr-preview workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kichura authored Mar 2, 2024
1 parent 7e3dbe3 commit 3e4d31c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy PR preview

on:
pull_request:
types:
- opened
- reopened
- synchronize

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4

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

0 comments on commit 3e4d31c

Please sign in to comment.