Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 8065f4e

Browse files
committed
排障
1 parent 53de636 commit 8065f4e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-wiki.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ jobs:
2626
- name: Build GitBook
2727
run: gitbook build . # 构建 GitBook 静态文件
2828

29-
- name: Prepare to Deploy
30-
run: |
31-
git checkout main # 切换到 main 分支
32-
mkdir -p source/wiki # 确保目录存在
33-
3429
- name: Deploy to Main Branch
3530
run: |
36-
cp -rf _book/* source/wiki/ # 复制静态文件
31+
git clone https://github.com/BlockHaity/Hypiworld-Community-Resource-Library.git main
32+
rm -rf main/source/wiki/*
33+
cp -rf _book/* main/source/wiki/ # 复制静态文件
34+
cd main
3735
git config --local user.email "action@github.com"
3836
git config --local user.name "GitHub Action"
3937
git add source/wiki

0 commit comments

Comments
 (0)