From 627fea490d0ce4dcc5ec765f97dd5ef2469798e2 Mon Sep 17 00:00:00 2001 From: zhouzhongping Date: Thu, 9 May 2024 16:22:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=EF=BC=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml index 99a63dc1..15a753b2 100644 --- a/.gitea/workflows/cicd.yaml +++ b/.gitea/workflows/cicd.yaml @@ -21,10 +21,11 @@ jobs: - name: Install Quartz dependencies and Build site run: | + # 移除 Quartz 项目 content 目录下的 README 文件 + rm -f /wiki/quartz/content/README.md + # 进入 Quartz 项目目录,安装依赖并构建网站 - cd /wiki/quartz - npm ci - npx quartz build + cd /wiki/quartz && npm ci && npx quartz build # 创建 public 目录并复制构建结果到此目录 mkdir -p /wiki/public/ && cp -r public/* /wiki/public/ @@ -33,7 +34,7 @@ jobs: run: | # 设置 Git 用户名和邮箱 git config --global user.name "Actions" - git config --global user.email "Actions@7wate.com" + git config --global user.email "actions@7wate.com" # 在 public 目录下初始化 git 仓库 cd /wiki/public/ && git init && git add . @@ -46,5 +47,4 @@ jobs: git remote add origin https://${{ secrets.GIT_PUSH_PULL_TOKEN }}@git.7wate.com/zhouzhongping/wiki.git # 强制推送到远程的 html 分支 - git checkout -b quartz - git push origin quartz --force \ No newline at end of file + git checkout -b quartz && git push origin quartz --force \ No newline at end of file