Skip to content

Commit 208592a

Browse files
committed
优化自动构建
1 parent 6a24fb5 commit 208592a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,19 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717

1818
steps:
19+
# 修复 Windows 平台检出问题
1920
- name: Checkout code with token
2021
uses: actions/checkout@v4
2122
with:
2223
token: ${{ secrets.GITHUB_TOKEN }}
23-
fetch-depth: 0
24+
# 添加重试机制
25+
retries: 3
26+
# 设置更长的超时时间
27+
fetch-timeout: 300
28+
# 禁用垃圾回收
29+
disable-garbage-collection: true
30+
# 仅获取必要的历史记录
31+
fetch-depth: 1
2432

2533
- name: Set up Python 3.13
2634
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)