Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
done
4 changes: 2 additions & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -54,4 +54,4 @@ build-backend = "poetry.core.masonry.api"
markers = [
"integration: marks tests as integration (use with '-m integration')"
]
testpaths = ["tests"]
testpaths = ["tests"]
Loading