From c0e845265c69c1215215165e942a8bdda34b6b9d Mon Sep 17 00:00:00 2001 From: NIANIANKNIA Date: Mon, 17 Jun 2024 13:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Daction=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 2c9ca87..0c2b7a0 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -55,20 +55,9 @@ jobs: git rm -rf . cp -r ../src/.vuepress/dist/* . git add . - git commit -m "Update docs" - git push --force "https://${{ secrets.PUSH_REPO_TOKEN }}@github.com/Nia-Server/NiaServer-Docs-CN.git" gh-pages - env: - GITHUB_TOKEN: ${{ secrets.PUSH_REPO_TOKEN }} - - - name: Create CNAME file - run: echo "docs.mcnia.top" > CNAME - - - name: Commit and Push CNAME file - run: | - git config --local user.name "GitHub Action" - git config --local user.email "action@github.com" + echo "docs.mcnia.top" > CNAME # 直接在这里创建CNAME文件 git add CNAME - git commit -m "Add CNAME file" + git commit -m "Update docs" git push --force "https://${{ secrets.PUSH_REPO_TOKEN }}@github.com/Nia-Server/NiaServer-Docs-CN.git" gh-pages env: GITHUB_TOKEN: ${{ secrets.PUSH_REPO_TOKEN }}