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: