更新 CI 配置以支持公开的 NuGet 包#4
Merged
Merged
Conversation
- 创建 NuGet.config 文件,配置公开的 GitHub Packages 源 - 移除 CI 工作流中的认证步骤(包已公开) - 移除 packages: read 权限 - 统一使用 Duckov-Custom-Model 作为源名称
There was a problem hiding this comment.
Pull Request Overview
This PR updates the CI configuration to support accessing public NuGet packages from GitHub Packages without authentication. The DuckovGameLibs package has been made public, eliminating the need for authentication tokens in CI workflows.
- Created a NuGet.config file to centralize package source configuration for both CI and local development
- Removed authentication steps and
packages: readpermissions from CI workflows - Standardized registry naming from "github" to "Duckov-Custom-Model" across all configuration files
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| NuGet.config | Adds centralized NuGet configuration with public GitHub Packages source alongside nuget.org |
| .github/workflows/release.yml | Removes authentication step and packages: read permission since packages are now public |
| .github/workflows/build.yml | Removes authentication step and packages: read permission since packages are now public |
| .github/dependabot.yml | Updates registry name from "github" to "Duckov-Custom-Model" for consistency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GitHub Packages 的 NuGet 源即使包是公开的,访问时仍需要认证。 使用 dotnet nuget update source 命令为已配置的源添加认证凭据。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
说明
由于 DuckovGameLibs 包已改为公开,不再需要认证即可访问。通过创建 NuGet.config 文件,CI 和本地开发环境都可以自动使用相同的配置。