diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 03b346c20..46d922d3d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -58,7 +58,7 @@ jobs: continue-on-error: true - name: Deploy main branch - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.PUBLISH_TOKEN }} @@ -76,7 +76,7 @@ jobs: HUGO_ENV: staging - name: Deploy to PR preview - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref != 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index da4fd809f..122673ac0 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -13,7 +13,7 @@ jobs: run: mkdir public - name: Delete folder - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public