From 436942cc04a5f39bc8a52172912c13cbb63aee5a Mon Sep 17 00:00:00 2001 From: wanghu Date: Wed, 2 Sep 2026 11:20:47 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20workflow=20=E7=A7=BB=E5=88=B0=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E6=A0=B9=20.gitea/workflows=EF=BC=8C=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=80=82=E9=85=8D=20BasePlatformDotnet=20=E5=AD=90?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea Actions 仅识别仓库根 .gitea/workflows/,原 BasePlatformDotnet/.gitea/workflows/ci.yml 不触发。 - 移动到根 .gitea/workflows/ci.yml - 所有 dotnet 命令改指 BasePlatformDotnet/yh-platform-net.sln - 推送目标 artifacts 同步 BasePlatformDotnet/artifacts --- .../.gitea => .gitea}/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename {BasePlatformDotnet/.gitea => .gitea}/workflows/ci.yml (73%) diff --git a/BasePlatformDotnet/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml similarity index 73% rename from BasePlatformDotnet/.gitea/workflows/ci.yml rename to .gitea/workflows/ci.yml index 19447ad..18d6c0f 100644 --- a/BasePlatformDotnet/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,16 +16,16 @@ jobs: dotnet-version: 8.0.x - name: Restore - run: dotnet restore yh-platform-net.sln + run: dotnet restore BasePlatformDotnet/yh-platform-net.sln - name: Build - run: dotnet build yh-platform-net.sln --no-restore -c Release + run: dotnet build BasePlatformDotnet/yh-platform-net.sln --no-restore -c Release - name: Test - run: dotnet test yh-platform-net.sln --no-build -c Release --logger "console;verbosity=normal" + run: dotnet test BasePlatformDotnet/yh-platform-net.sln --no-build -c Release --logger "console;verbosity=normal" - name: Pack - run: dotnet pack yh-platform-net.sln --no-build -c Release -o artifacts + run: dotnet pack BasePlatformDotnet/yh-platform-net.sln --no-build -c Release -o BasePlatformDotnet/artifacts publish: # 仅主分支 push 时发版到 Nexus 私服(PR 不触发) @@ -41,7 +41,7 @@ jobs: dotnet-version: 8.0.x - name: Pack - run: dotnet pack yh-platform-net.sln -c Release -o artifacts + run: dotnet pack BasePlatformDotnet/yh-platform-net.sln -c Release -o BasePlatformDotnet/artifacts - name: Push to Nexus # Nexus 的 NuGet 推送认证走 HTTP Basic(账号+密码),不校验 api-key; @@ -63,4 +63,4 @@ jobs: EOF - dotnet nuget push "artifacts/*.nupkg" --source nexus-nuget --configfile nuget-push.config --api-key nexus + dotnet nuget push "BasePlatformDotnet/artifacts/*.nupkg" --source nexus-nuget --configfile nuget-push.config --api-key nexus