Skip to content

Commit

Permalink
Fix preview builds (#82)
Browse files Browse the repository at this point in the history
* Fix preview builds

* Add config to remove PR branches on close

---------

Co-authored-by: Cocoa <[email protected]>
  • Loading branch information
momijizukamori and Cocoa authored Feb 4, 2024
1 parent c72b8ca commit d7d4133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy PR preview

on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, closed]
workflow_dispatch:
inputs:
destination:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build
run: npm run build -- --base=https://momijizukamori.github.io/bookbinder-js/pr-preview/${{ github.event.pull_request.number }}
run: npm run build -- --base=https://momijizukamori.github.io/bookbinder-js/pr-preview/pr-${{ github.event.pull_request.number }}
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
Expand Down

0 comments on commit d7d4133

Please sign in to comment.