diff --git a/BasePlatformDotnet/.gitea/workflows/ci.yml b/BasePlatformDotnet/.gitea/workflows/ci.yml index 00b8211..19447ad 100644 --- a/BasePlatformDotnet/.gitea/workflows/ci.yml +++ b/BasePlatformDotnet/.gitea/workflows/ci.yml @@ -44,9 +44,23 @@ jobs: run: dotnet pack yh-platform-net.sln -c Release -o artifacts - name: Push to Nexus - run: > - dotnet nuget push "artifacts/*.nupkg" - --source ${{ secrets.NEXUS_URL }} - --username ${{ secrets.NEXUS_USER }} - --password "${{ secrets.NEXUS_PASS }}" - --api-key nexus --skip-duplicate + # Nexus 的 NuGet 推送认证走 HTTP Basic(账号+密码),不校验 api-key; + # 且 Nexus 为 http 源,SDK 8 需在 nuget.config 显式 allowInsecureConnections=true。 + # 动态生成带凭据的 nuget.config 并指定 --configfile,避免凭据入 git。 + run: | + cat > nuget-push.config < + + + + + + + + + + + + + EOF + dotnet nuget push "artifacts/*.nupkg" --source nexus-nuget --configfile nuget-push.config --api-key nexus diff --git a/BasePlatformDotnet/Directory.Build.props b/BasePlatformDotnet/Directory.Build.props index 0fbb85b..cbddf3c 100644 --- a/BasePlatformDotnet/Directory.Build.props +++ b/BasePlatformDotnet/Directory.Build.props @@ -9,8 +9,9 @@ true false true - - 1.0.0 + + 1.0.0-preview.1 $(YhPlatformNetVersion) yunhai-platform yunhai