Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
sid86-dev committed Oct 16, 2023
1 parent de789d3 commit f1eae07
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy PR previews

on:
# Trigger the workflow on push or pull request,
pull_request:
types:
- opened
- reopened
- synchronize
- closed

# Run this workflow only on the main branch
concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-20.04
steps:
# Step 1 : Checkout the code
- name: Checkout
uses: actions/checkout@v3

# Step 2 : Install and build the code
- name: Install and Build
run: |
npm install
npm run build
# Step 3 : Deploy the preview
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/

0 comments on commit f1eae07

Please sign in to comment.