ci: workflow 移到仓库根 .gitea/workflows,路径适配 BasePlatformDotnet 子目录
ci / build-test (push) Failing after 19m1s
ci / publish (push) Skipped

Gitea Actions 仅识别仓库根 .gitea/workflows/,原 BasePlatformDotnet/.gitea/workflows/ci.yml 不触发。
- 移动到根 .gitea/workflows/ci.yml
- 所有 dotnet 命令改指 BasePlatformDotnet/yh-platform-net.sln
- 推送目标 artifacts 同步 BasePlatformDotnet/artifacts
This commit is contained in:
wanghu
2026-09-02 11:20:47 +08:00
parent 0f232f0a75
commit 436942cc04
@@ -16,16 +16,16 @@ jobs:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Restore - name: Restore
run: dotnet restore yh-platform-net.sln run: dotnet restore BasePlatformDotnet/yh-platform-net.sln
- name: Build - 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 - 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 - 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: publish:
# 仅主分支 push 时发版到 Nexus 私服(PR 不触发) # 仅主分支 push 时发版到 Nexus 私服(PR 不触发)
@@ -41,7 +41,7 @@ jobs:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Pack - 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 - name: Push to Nexus
# Nexus 的 NuGet 推送认证走 HTTP Basic(账号+密码),不校验 api-key; # Nexus 的 NuGet 推送认证走 HTTP Basic(账号+密码),不校验 api-key;
@@ -63,4 +63,4 @@ jobs:
</packageSourceCredentials> </packageSourceCredentials>
</configuration> </configuration>
EOF 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