.NET SDK Release and NuGet Publishing
The SDK packages share one version source in Directory.Build.props.
Release Please updates the HonuaSdkVersion property when it opens a release
PR.
Packages
The publish workflow builds and packs:
Honua.Sdk.AbstractionsHonua.Sdk.AdminHonua.Sdk.ProcessesHonua.Sdk.GeometryHonua.Sdk.SpecHonua.Sdk.StudioHonua.Sdk.GrpcHonua.Sdk.GeoServicesHonua.Sdk.ScenesHonua.Sdk.FieldHonua.Sdk.OgcFeaturesHonua.Sdk.CatalogsHonua.Sdk.OfflineHonua.Sdk.ConsoleShareHonua.Sdk.CoveragesHonua.Sdk.Cli(.NET tool package)Honua.Sdk
Release Flow
- Merge changes to
trunkusing conventional commits. - Let the Release Please workflow open or update the release PR.
- Confirm the release PR includes
Directory.Build.props,.release-please-manifest.json, andCHANGELOG.md. - Run the
Publish .NET SDK Packagesworkflow manually withdry_run=true. This builds, tests, validates API compatibility, audits dependencies, packs, and runs package install smoke without publishing. - Merge the release PR so Release Please creates the tag named
dotnet-sdk-v<PackageVersion>. Example:dotnet-sdk-v1.0.0.
Before a release tag is created, configure a nuget.org Trusted Publishing
policy for owner makanikai, repository honua-io/honua-sdk-dotnet, workflow
publish-dotnet-sdk.yml, environment public-nuget, and package glob
Honua.Sdk*. No long-lived NUGET_API_KEY or author-signing secret exists or
may be created. The publish job uses its id-token: write permission and the
pinned NuGet/login action to exchange its GitHub OIDC identity for a
short-lived key; an empty exchange fails closed before any registry mutation.
The pinned stable Geospatial.Grpc version must also be available from
nuget.org. The environment must
allow only selected dotnet-sdk-v* tags, require a reviewer, and disallow admin
bypass. The dependency preflight runs before package construction; the
short-lived credential is resolved only inside the protected publish job and
is validated before any registry mutation. The workflow never prints the
credential. Account/package scope is finally proven by the first push.
The tag version must match the MSBuild PackageVersion resolved from the SDK
projects, the tag commit must be contained in origin/trunk, and required
staging integration must pass. The workflow fails before publishing if any of
those bindings fail. Library packages contain only net11.0 assets. CI runs the test
projects, CLI, and browser sample on .NET 11. Release build and publish jobs use the exact .NET SDK
11.0.100 so a rerun cannot silently select a newer feature-band SDK.
Version bumps
The SDK follows standard SemVer:
- Patch (
1.0.x) -- bug fixes and internal changes with no public-API movement. Driven byfix:commits. - Minor (
1.x.0) -- additive public surface (new types, new methods, new options). Driven byfeat:commits. Must remain source- and binary-compatible with the previous minor. - Major (
x.0.0) -- intentional breaking change. Must include aBREAKING CHANGE:footer or!suffix on the conventional-commit type, and is coordinated across the wider Honua SDK fleet.
Pre-release suffixes (*-rc.N, *-beta.N) are reserved for deliberate
previews of a future major.
Publishing Targets
- Stable versions publish to both nuget.org and GitHub Packages. Before the
first mutation, the workflow audits every exact coordinate on both feeds.
Absent coordinates are eligible for publication, semantically identical
payloads are safe to resume, and an occupied divergent payload fails closed.
The same preflight applies to every
.snupkgat nuget.org's HTTPS symbol package endpoint. The workflow submits only absent symbol coordinates, without duplicate acceptance, then downloads and semantically compares every remote symbol package (including its portable-PDB payload) before proceeding. An unavailable or divergent symbol coordinate fails closed. After publication it also downloads and compares every public primary package with the build-once payload, then clean-installs theHonua.Sdkumbrella, representativeHonua.Sdk.Admin/Honua.Sdk.Grpcleaves, and theHonua.Sdk.Clitool using a NuGet.config that contains only nuget.org. GitHub Packages publication happens only after that public-feed proof. - Prerelease versions publish to GitHub Packages only.
- Dry runs build, inspect, and install the local packages without pushing to
either feed. They never invoke Trusted Publishing and keep immutable primary
and symbol packages as workflow artifacts. The
run_staginginput can add staging to a dry run; staging is mandatory for every non-dry tag publish.
The workflow uses the Trusted Publishing exchange's short-lived key for
nuget.org and the job-scoped GITHUB_TOKEN for GitHub Packages. Build and
package-install validation restore the stable Geospatial.Grpc dependency
from nuget.org; the GitHub Packages credential is reserved for the secondary
SDK publication target. Packages are not author-signed: nuget.org
repository-signs every package on ingestion, while modern CA-issued
code-signing certificates are HSM-bound and cannot be stored as base64 GitHub
secrets. Both registries receive the same immutable build-once package payload.
Every build-once primary and symbol archive is covered by a committed-run
SHA256SUMS. The publish job rechecks those hashes after artifact download and
uploads machine-readable preflight and post-publication receipts. NuGet's
repository signature can change raw archive bytes; the public comparison hashes
the package payload while excluding only NuGet signature/container plumbing.
Do not use a new workflow dispatch to recover a partially completed release.
Use GitHub's rerun mechanism for the same run so it reuses the immutable tag and
coordinate audit. Registry evidence uploads use an always() boundary so a
failed or partial publish retains the preflight/proof files that were produced.
Both failed-job and full-run retries are supported.
Local Checks
Resolve the package version:
dotnet msbuild src/Honua.Sdk.Admin/Honua.Sdk.Admin.csproj -nologo -getProperty:PackageVersion
For emergency manual releases, update HonuaSdkVersion in
Directory.Build.props and create a matching dotnet-sdk-v<PackageVersion>
tag.
Pack all packages locally:
mkdir -p ./nupkgs
for project in \
src/Honua.Sdk.Abstractions/Honua.Sdk.Abstractions.csproj \
src/Honua.Sdk.Admin/Honua.Sdk.Admin.csproj \
src/Honua.Sdk.Processes/Honua.Sdk.Processes.csproj \
src/Honua.Sdk.Geometry/Honua.Sdk.Geometry.csproj \
src/Honua.Sdk.Spec/Honua.Sdk.Spec.csproj \
src/Honua.Sdk.Studio/Honua.Sdk.Studio.csproj \
src/Honua.Sdk.Grpc/Honua.Sdk.Grpc.csproj \
src/Honua.Sdk.GeoServices/Honua.Sdk.GeoServices.csproj \
src/Honua.Sdk.Scenes/Honua.Sdk.Scenes.csproj \
src/Honua.Sdk.Field/Honua.Sdk.Field.csproj \
src/Honua.Sdk.OgcFeatures/Honua.Sdk.OgcFeatures.csproj \
src/Honua.Sdk.Catalogs/Honua.Sdk.Catalogs.csproj \
src/Honua.Sdk.Offline/Honua.Sdk.Offline.csproj \
src/Honua.Sdk.ConsoleShare/Honua.Sdk.ConsoleShare.csproj \
src/Honua.Sdk.Coverages/Honua.Sdk.Coverages.csproj \
src/Honua.Sdk.Cli/Honua.Sdk.Cli.csproj \
src/Honua.Sdk/Honua.Sdk.csproj
do
dotnet pack "$project" --configuration Release -o ./nupkgs
done
Release declarations
Read this before bumping a contract or schema version, or before adding or removing a dependency on a honua-server capability.
Release version declaration
release/component-versions.json declares the contract and schema versions this repository serves. The honua-release nightly resolver reads that file at the published source commit and refuses the component when it is missing or invalid, so any contract or schema version bump must change the declaration in the same pull request. The declaration takes effect only after a release-please publication contains it.
SDK capability baseline
release/sdk-capability-baseline.json (honua.sdk-capability-baseline/v1, defined by honua-release schemas/sdk-capability-baseline.v1.schema.json and docs/SDK-SERVER-BASELINE-RULE.md) declares the honua-server capabilities this repository requires and the minimumServerVersion derived from them. The honua-release nightly resolver reads it at the source revision of every published NuGet package, and refuses the component when it is missing, invalid, or when those revisions declare different minimumServerVersion values. It takes effect only after a release-please publication contains it. Every required capability must be a key in honua-server docs/gis/data/capability-keys.v1.json, and capabilities must hold exactly one introduction entry per required capability. Add or remove a required capability in the same PR that starts or stops depending on it.