1 Commits

Author SHA1 Message Date
Yue-bin
63b0ab1393 chore(ci): 配置.NET构建工作流代理设置
All checks were successful
Publish Release / build (push) Successful in 33s
为解决依赖包还原问题,在Gitea工作流中添加HTTP/HTTPS代理配置,
包括代理服务器地址和本地网络排除规则。
2026-06-11 02:11:04 +08:00

View File

@@ -21,8 +21,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore
# 直接加代理得了
env:
DOTNET_RESTORE_SOURCES: "https://repo.huaweicloud.com/repository/nuget/v3/index.json"
http_proxy: "http://172.17.0.1:7890"
https_proxy: "http://172.17.0.1:7890"
no_proxy: "localhost,127.0.0.1,*.lan"
- name: Build
run: dotnet build --no-restore --configuration Release