Skip to content

Commit

Permalink
updated the preview workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed May 15, 2024
1 parent 09f2a78 commit 2d4407c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
deploy-preview:
runs-on: ubuntu-latest

if: github.event.action != 'closed'
steps:
# Check out the repository
- name: Checkout code
Expand All @@ -30,8 +29,14 @@ jobs:
# Deploy to GitHub Pages
- uses: rossjrw/pr-preview-action@v1
if: github.event.action=='opened'|| github.event.action=='reopened'|| github.event.action=='synchronize'
with:
source-dir: .
source-dir: ./build/
action: deploy
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
- uses: rossjrw/pr-preview-action@v1
if: github.event.action == 'closed' || github.event.pull_request.merged
with:
source-dir: ./build/
action: remove

0 comments on commit 2d4407c

Please sign in to comment.