From 3b1ccb236b5e3c96b759ce96dbbde21f7d1cc702 Mon Sep 17 00:00:00 2001 From: AlkaidSTART <2595006848@qq.com> Date: Thu, 6 Aug 2026 12:21:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20main=20=E5=88=86?= =?UTF-8?q?=E6=94=AF=20GitHub=20Pages=20=E9=83=A8=E7=BD=B2=E5=8F=97?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=BF=9D=E6=8A=A4=E8=A7=84=E5=88=99=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index db4b103..94814fc 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,9 +6,7 @@ on: workflow_dispatch: permissions: - contents: read - pages: write - id-token: write + contents: write concurrency: group: pages @@ -17,9 +15,6 @@ concurrency: jobs: deploy: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout uses: actions/checkout@v4 @@ -41,16 +36,10 @@ jobs: - name: Build client run: pnpm build:client - - name: Configure Pages - uses: actions/configure-pages@v5 + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 with: - enablement: true - - - name: Upload Packages Client - uses: actions/upload-pages-artifact@v3 - with: - path: packages/client/dist - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: packages/client/dist + publish_branch: gh-pages + force_orphan: true