From d7d4133033631789b55ff40ff68f184fcdf5ccb9 Mon Sep 17 00:00:00 2001 From: momijizukamori Date: Sun, 4 Feb 2024 17:34:59 -0500 Subject: [PATCH] Fix preview builds (#82) * Fix preview builds * Add config to remove PR branches on close --------- Co-authored-by: Cocoa --- .github/workflows/test-pages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-pages.yml b/.github/workflows/test-pages.yml index 6b9f4b8..8142169 100644 --- a/.github/workflows/test-pages.yml +++ b/.github/workflows/test-pages.yml @@ -3,7 +3,7 @@ name: Deploy PR preview on: pull_request: - types: [opened, synchronize, reopened] + types: [opened, synchronize, reopened, closed] workflow_dispatch: inputs: destination: @@ -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: