Skip to content

更新 CI 配置以支持公开的 NuGet 包#4

Merged
BAKAOLC merged 2 commits into
mainfrom
update-nuget-config-for-public-package
Nov 15, 2025
Merged

更新 CI 配置以支持公开的 NuGet 包#4
BAKAOLC merged 2 commits into
mainfrom
update-nuget-config-for-public-package

Conversation

@BAKAOLC

@BAKAOLC BAKAOLC commented Nov 15, 2025

Copy link
Copy Markdown
Collaborator

变更内容

  • 创建 NuGet.config 文件,配置公开的 GitHub Packages 源
  • 移除 CI 工作流中的认证步骤(包已公开)
  • 移除 packages: read 权限
  • 统一使用 Duckov-Custom-Model 作为源名称

说明

由于 DuckovGameLibs 包已改为公开,不再需要认证即可访问。通过创建 NuGet.config 文件,CI 和本地开发环境都可以自动使用相同的配置。

- 创建 NuGet.config 文件,配置公开的 GitHub Packages 源
- 移除 CI 工作流中的认证步骤(包已公开)
- 移除 packages: read 权限
- 统一使用 Duckov-Custom-Model 作为源名称
Copilot AI review requested due to automatic review settings November 15, 2025 16:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: read permissions 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.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/build.yml
GitHub Packages 的 NuGet 源即使包是公开的,访问时仍需要认证。
使用 dotnet nuget update source 命令为已配置的源添加认证凭据。
@BAKAOLC BAKAOLC merged commit a087658 into main Nov 15, 2025
1 check passed
@BAKAOLC BAKAOLC deleted the update-nuget-config-for-public-package branch November 15, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants