Commit Graph

15 Commits

Author SHA1 Message Date
movingsam
2abc87af8a refactor: 合并 CI 配置并添加缓存清理
Some checks failed
Publish NuGet Packages / publish (push) Failing after 11s
2026-03-01 00:31:08 +08:00
movingsam
f4e4aca443 fix(workflows): 修复发布NuGet工作流的环境变量名称
Some checks failed
Publish NuGet Packages / build (push) Failing after 19s
Publish NuGet Package / publish (push) Failing after 22s
- 将GITEA_API_TOKEN环境变量更正为GITEA_TOKEN
- 修正了YAML文件中的变量引用错误
- 确保工作流正确使用秘钥进行身份验证
- 避免因错误变量导致的发布失败
2026-03-01 00:07:25 +08:00
movingsam
3ae057cdd8 fix: 修复环境变量为 GITEA_TOKEN
Some checks failed
Publish NuGet Packages / build (push) Failing after 19s
Publish NuGet Package / publish (push) Failing after 9s
2026-03-01 00:04:29 +08:00
movingsam
140d844f70 fix: 修复 CI 环境变量名称
All checks were successful
Publish NuGet Packages / build (push) Successful in 13s
2026-03-01 00:03:37 +08:00
movingsam
55a57408b3 fix: 修复 CI/CD 配置
Some checks failed
Publish NuGet Packages / build (push) Failing after 38s
Publish NuGet Package / publish (push) Failing after 12s
- 移除 docker.yml (不需要 Docker 构建)
- 修复 nuget.yml 中 YAML 语法错误 (双引号改为单引号)
2026-02-28 23:57:19 +08:00
movingsam
7877f89d35 feat(platform): 增强 Infrastructure 层可扩展性,添加 NuGet 发布脚本与 CI/CD
Some checks failed
Build and Push Docker / build (push) Failing after 16s
Publish NuGet Packages / build (push) Failing after 1h7m51s
## 主要变更

### 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
a04dc199c9 Update secret name to GITEATOKEN
Some checks failed
Build and Push Docker / build (push) Failing after 30s
Publish NuGet Packages / build (push) Failing after 8m29s
2026-02-26 13:05:52 +08:00
a6ec824a37 Update secret name to GITEATOKEN
Some checks are pending
Build and Push Docker / build (push) Waiting to run
Publish NuGet Packages / build (push) Waiting to run
2026-02-26 13:05:38 +08:00
e81b1aeef5 Update Docker CI for org
Some checks failed
Build and Push Docker / build (push) Failing after 30s
Publish NuGet Packages / build (push) Failing after 30s
2026-02-26 13:00:19 +08:00
33cba4a084 Update NuGet CI for org
Some checks failed
Publish NuGet Packages / build (push) Waiting to run
Build and Push Docker / build (push) Has been cancelled
2026-02-26 12:59:58 +08:00
872e586cdd Add Docker CI workflow
Some checks failed
Build and Push Docker / build (push) Failing after 30s
Publish NuGet Packages / build (push) Failing after 31s
2026-02-26 10:58:41 +08:00
3db3b3393c Add NuGet CI workflow
Some checks failed
Publish NuGet Packages / build (push) Has been cancelled
2026-02-26 10:57:27 +08:00
62f8c3c5a0 Delete .gitea/workflows 2026-02-26 10:57:13 +08:00
54288f3817 Add NuGet CI workflow 2026-02-26 10:56:41 +08:00
ac47785d5b Create workflows directory 2026-02-26 10:56:40 +08:00