配置 GitHub Packages 支持 CI 构建#2
Merged
Merged
Conversation
358fe39 to
11b6e84
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR configures GitHub Actions CI/CD workflows and enables dual-mode dependency management for the project: NuGet packages in CI environments and local game directory references for development.
Key Changes:
- Added two GitHub Actions workflows for automated build and release processes
- Modified project files to conditionally use NuGet packages (DuckovGameLibs 1.1.6-Steam) in CI or local game DLLs in development
- Implemented automatic detection of CI environment through
$(CI)and$(GITHUB_ACTIONS)MSBuild variables
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| DuckovCustomModelRegister/DuckovCustomModelRegister.csproj | Added conditional logic to switch between NuGet package and local game directory references based on environment |
| DuckovCustomModel/DuckovCustomModel.csproj | Added conditional logic to switch between NuGet package and local game directory references based on environment |
| .github/workflows/build.yml | New workflow for building on main/develop branches and pull requests, includes test execution |
| .github/workflows/release.yml | New workflow for creating releases when version tags are pushed, includes artifact upload and GitHub release creation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
332c348 to
cdad7dc
Compare
- 添加 GitHub Actions workflow 配置(build.yml, release.yml) - 更新项目文件支持 CI 环境自动使用 NuGet 包 - 本地开发默认使用游戏目录,CI 环境使用 DuckovGameLibs 包 - 更新 NuGet 包版本号为 1.1.6-Steam - 配置 .NET 版本为 10.x - 添加 packages:read 权限以访问 GitHub Packages
ac46122 to
c08fad3
Compare
e539483 to
0371d2c
Compare
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.
变更内容
功能说明