From 2e0e185ca02f35426a35d17e1a0861774656fd26 Mon Sep 17 00:00:00 2001 From: Sarah Sayeed Qureshi Date: Tue, 18 Aug 2026 15:16:06 +0200 Subject: [PATCH 1/2] fix: set assembly version to the same as the package version --- .github/workflows/nuget-publish.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index 76758cf..221266e 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -32,18 +32,22 @@ jobs: exit 1 fi + - name: Set version from tag + run: | + VERSION=${GITHUB_REF_NAME#v} + echo "Building and packing with version: $VERSION" + echo "VERSION=$VERSION" >> "$GITHUB_ENV" + - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore + run: dotnet build --configuration Release --no-restore -p:Version=$VERSION - name: Pack using tag version run: | - VERSION=${GITHUB_REF_NAME#v} - echo "Packing with version: $VERSION" - dotnet pack HeimdallPower.Api.Client/HeimdallPower.Api.Client/HeimdallPower.Api.Client.csproj --configuration Release --no-build -o out /p:PackageVersion=$VERSION - dotnet pack HeimdallPower.Api.Client/HeimdallPower.Api.Client.Extensions/HeimdallPower.Api.Client.Extensions.csproj --configuration Release --no-build -o out /p:PackageVersion=$VERSION + dotnet pack HeimdallPower.Api.Client/HeimdallPower.Api.Client/HeimdallPower.Api.Client.csproj --configuration Release --no-build -o out -p:Version=$VERSION + dotnet pack HeimdallPower.Api.Client/HeimdallPower.Api.Client.Extensions/HeimdallPower.Api.Client.Extensions.csproj --configuration Release --no-build -o out -p:Version=$VERSION - name: NuGet login (OIDC -> short-lived API key) uses: NuGet/login@v1 @@ -56,4 +60,4 @@ jobs: for file in out/*.nupkg; do echo "Publishing $file" dotnet nuget push "$file" --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" -s https://api.nuget.org/v3/index.json --skip-duplicate - done \ No newline at end of file + done From 360a9b6ed2b2e18fba4f3a79dc176cf332347d42 Mon Sep 17 00:00:00 2001 From: Sarah Sayeed Qureshi Date: Tue, 18 Aug 2026 15:34:06 +0200 Subject: [PATCH 2/2] explicitly set version to 0.0.0 as default for python solution --- python/pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index c91bf01..e305c9f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "heimdallpower-api-client" -version = "0.1.0" +version = "0.0.0" description = "Python SDK for interacting with the Heimdall Power External API" readme = "README.md" authors = [ @@ -54,4 +54,4 @@ build-backend = "poetry.core.masonry.api" markers = [ "integration: marks tests as integration (use with '-m integration')" ] -testpaths = ["tests"] \ No newline at end of file +testpaths = ["tests"]