diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7f33723..0691420 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,15 +4,10 @@ on: push: branches: - main - pull_request: - branches: - - main - types: [closed] jobs: build-deploy: runs-on: ubuntu-latest - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) steps: - uses: actions/checkout@v4 with: @@ -31,7 +26,7 @@ jobs: npm run build - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist