From a2976d1d00a91ba5dff261f26aa712077f717b8b Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Tue, 9 Jan 2024 17:52:00 -0500 Subject: [PATCH] fix(github actions): use a different action to push to gh-pages --- .github/workflows/gh-pages.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 64cf229..8aeb250 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -25,11 +25,11 @@ jobs: - name: Build directory run: pnpm run vite:directory:build - name: Deploy - uses: s0/git-publish-subdir-action@develop - env: - REPO: self - BRANCH: gh-pages - FOLDER: release - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CLEAR_GLOBS_FILE: ".gh-pages-clear-rules" - SKIP_EMPTY_COMMITS: true + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./release + cname: arknights.halyul.dev + allow_empty_commit: true + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com'