chore: extract the SDK into its own repository
CI / build (push) Successful in 33s
CI / publish (push) Successful in 32s

Standalone home for the CertifiEd .NET client SDK, split out of the
platform repository with its history.

- src/ layout with its own solution, Directory.Build.props and
  global.json (warnings as errors, XML docs required).
- Gitea Actions CI: build and pack on every push, publish to nuget.org
  on a v* tag using the NUGET_API_KEY secret.
- CONTRIBUTING documents the release flow and the one-time CI setup.
This commit is contained in:
Faris Laptop
2026-07-20 15:36:26 +05:00
parent e0354458df
commit 2cd024f782
11 changed files with 248 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Разработка и релиз
## Сборка
```bash
dotnet build
dotnet pack src/CertifiEd.Client/CertifiEd.Client.csproj -c Release -o artifacts
```
Требуется .NET 10 SDK (см. `global.json`). Предупреждения компилятора трактуются как ошибки, публичные члены обязаны иметь XML-документацию.
## Релиз
Версия пакета берётся из тега:
```bash
# 1. Обновить <Version> в src/CertifiEd.Client/CertifiEd.Client.csproj
# 2. Закоммитить и поставить тег
git tag v1.0.1
git push origin main --tags
```
CI (`.gitea/workflows/ci.yml`) на теге `v*` собирает пакет с версией из тега и публикует его на nuget.org.
### Что нужно один раз настроить
- В настройках репозитория → Actions → Secrets добавить **`NUGET_API_KEY`** — ключ nuget.org с правом публикации пакета `CertifiEd.Client`.
- Убедиться, что к репозиторию подключён Actions-раннер (Settings → Actions → Runners). Без раннера workflow не запустится.
## Совместимость
Публичный API следует semver: ломающие изменения — только в мажорной версии. Формат токена лицензии и протокол активации описаны в документации платформы CertifiEd.