From 109cf4113de3bae8f8e2df03ad5768d642ef381a Mon Sep 17 00:00:00 2001 From: Jikun Date: Tue, 21 Jul 2026 12:55:08 +0800 Subject: [PATCH 1/2] fix: use GITHUB_TOKEN for docs deploy --- .github/workflows/deploy-docs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4c5864f5..aac30e9d 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -8,6 +8,8 @@ jobs: build_and_deploy_job: runs-on: ubuntu-latest name: Build and Deploy Job + permissions: + contents: write steps: - uses: actions/checkout@v4 - run: git config --global user.email "github@wassim.dev" @@ -22,5 +24,5 @@ jobs: npm ci npm run deploy env: - GIT_PASS: ${{ secrets.SWA_CLI_DEPLOY_DOCS_GH_PAGES }} - GIT_USER: "manekinekko" + GIT_PASS: ${{ secrets.GITHUB_TOKEN }} + GIT_USER: ${{ github.actor }} From fe6ce28feb34f4277b03cbfcc52004fe3236598f Mon Sep 17 00:00:00 2001 From: Jikun Date: Tue, 21 Jul 2026 15:51:23 +0800 Subject: [PATCH 2/2] change GIT_USER --- .github/workflows/deploy-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index aac30e9d..b9fa70bf 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -24,5 +24,5 @@ jobs: npm ci npm run deploy env: - GIT_PASS: ${{ secrets.GITHUB_TOKEN }} - GIT_USER: ${{ github.actor }} + GIT_PASS: ${{ secrets.SWA_CLI_DEPLOY_DOCS_GH_PAGES }} + GIT_USER: "cjk7989"