From db2248171ed45b613dd9801b3dbb406bf1c0188d Mon Sep 17 00:00:00 2001 From: SMGDev Date: Thu, 30 Oct 2025 10:44:04 +0000 Subject: [PATCH] fix: change github action --- .github/workflows/deploy-pages.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index fee624ac..c59dc24c 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -34,6 +34,13 @@ jobs: - name: Build run: pnpm run build-nocdn + + - name: Deploy to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: ./dist - name: Upload artifact uses: actions/upload-pages-artifact@v3 @@ -52,7 +59,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist - publish_branch: gh-pages