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 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"]