From 32d9900e072208b2aac9f157415a3637d4de7078 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Thu, 28 May 2026 16:39:36 +0330 Subject: [PATCH] fix(ci): use --source flag instead of --configfile for NuGet restore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --configfile nuget.mirror.config fails when the file isn't present in the workspace (e.g. when Gitea is behind GitHub on commits). --source inline URL is simpler, self-contained, and replaces all configured sources — no extra file dependency in CI. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci-cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 6142641..12e04b6 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -74,7 +74,7 @@ jobs: git checkout FETCH_HEAD - name: Restore - run: dotnet restore src/Meezi.API/Meezi.API.csproj --configfile nuget.mirror.config + run: dotnet restore src/Meezi.API/Meezi.API.csproj --source http://mirror:8081/repository/nuget-group/index.json - name: Build run: dotnet build src/Meezi.API/Meezi.API.csproj --no-restore -c Release @@ -107,7 +107,7 @@ jobs: git checkout FETCH_HEAD - name: Restore - run: dotnet restore src/Meezi.Admin.API/Meezi.Admin.API.csproj --configfile nuget.mirror.config + run: dotnet restore src/Meezi.Admin.API/Meezi.Admin.API.csproj --source http://mirror:8081/repository/nuget-group/index.json - name: Build run: dotnet build src/Meezi.Admin.API/Meezi.Admin.API.csproj --no-restore -c Release