We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fe36f2 commit 480277dCopy full SHA for 480277d
.github/workflows/static.yml
@@ -72,7 +72,10 @@ jobs:
72
- name: 文档 - 文档库克隆
73
working-directory: ./src/
74
run: |
75
- git clone --depth 1 https://github.com/${GITHUB_REPOSITORY}.git temp_repo
+ # --depth 1 选项会损失git历史,但能加速编译。可自行启用/关闭
76
+ # 注意若使用该选项,必须要删除 .git 文件夹,避免时间和贡献者错乱
77
+ git clone --depth 1 https://github.com/${GITHUB_REPOSITORY}.git temp_repo
78
+ rm -rf temp_repo/.git
79
rsync -a temp_repo/ .
80
rm -rf temp_repo
81
# git clone --depth 1 https://github.com/${GITHUB_REPOSITORY}.git # 如果有多个clone项则替换成这个,避免冲突
0 commit comments