fengling-platform/Fengling.Platform.Infrastructure
movingsam 7877f89d35
Some checks failed
Build and Push Docker / build (push) Failing after 16s
Publish NuGet Packages / build (push) Failing after 1h7m51s
feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD
## 主要变更

### Infrastructure 层重构
- `PlatformDbContext`: 构造函数改为接受泛型 `DbContextOptions`,支持派生上下文
- `TenantStore<TContext>`: 泛型化实现,支持不同的数据库上下文
- `Extensions`: 新增 `AddPlatformCore<TContext>` 扩展方法,简化服务注册

### 依赖调整
- 移除 Npgsql.EntityFrameworkCore.PostgreSQL 直接依赖,由使用方自行决定数据库提供程序

### CI/CD 集成
- 新增 `.gitea/workflows/publish-nuget.yml` Gitea Actions 工作流
- 新增 `push-platform-nuget.sh` 脚本,支持:
  - 从 git tag 自动获取版本号
  - HTTP/HTTPS 双模式支持
  - 独立 NuGet 配置文件
  - CI/CD 友好的环境变量配置

### 其他
- `NuGet.Config`: 新增 NuGet 配置文件
- `Fengling.Platform.Domain`: 添加 Items 文件夹占位
2026-02-27 13:58:09 +08:00
..
bin\Debug/net10.0 feat(auth): extract Tenant to Platform domain 2026-02-18 23:02:03 +08:00
Configurations refactor(platform): migrate Tenant to anemia model, use Manager pattern 2026-02-21 13:22:08 +08:00
Migrations openid的模型也迁移一下 2026-02-21 15:13:44 +08:00
DesignTimeApplicationDbContextFactory.cs openid的模型也迁移一下 2026-02-21 15:13:44 +08:00
Extensions.cs feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD 2026-02-27 13:58:09 +08:00
Fengling.Platform.Infrastructure.csproj feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD 2026-02-27 13:58:09 +08:00
GlobalUsings.cs feat(auth): extract Tenant to Platform domain 2026-02-18 23:02:03 +08:00
ITenantStore.cs 调整项目 2026-02-21 15:05:37 +08:00
PlatformDbContext.cs feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD 2026-02-27 13:58:09 +08:00
SeedData.cs feat[platform]: add fengling-api OAuth client for introspection 2026-02-21 16:43:26 +08:00
TenantManager.cs feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD 2026-02-27 13:58:09 +08:00
TenantStore.cs feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD 2026-02-27 13:58:09 +08:00