Skip to content

Commit

Permalink
fix(ci): update correct logic to check for action
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
  • Loading branch information
aarnphm committed Sep 23, 2024
1 parent 3cf613b commit 097f9b3
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 125 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# .github/workflows/preview.yml
name: Deploy PR previews

on:
Expand Down Expand Up @@ -30,16 +29,16 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
if: github.event.action != 'closed'
run: npx quartz build
- uses: rossjrw/pr-preview-action@430e3dfc1de8a8ae77e77d862d25676ef9db55d1 # ratchet:rossjrw/pr-preview-action@v1
if: contains(['opened', 'reopened', 'synchronize'], github.event.action)
if: github.event.action != 'closed'
with:
source-dir: ./public/
custom-url: tinymorph.aarnphm.xyz
action: deploy
- uses: rossjrw/pr-preview-action@430e3dfc1de8a8ae77e77d862d25676ef9db55d1 # ratchet:rossjrw/pr-preview-action@v1
if: github.event.action == "closed" && !github.event.pull_request.merged
if: github.event.action == 'closed' && !github.event.pull_request.merged
with:
source-dir: ./public/
custom-url: tinymorph.aarnphm.xyz
Expand Down
Loading

0 comments on commit 097f9b3

Please sign in to comment.