Skip to content

Commit 72d9dfb

Browse files
committed
fix cicd
1 parent 8a63ce6 commit 72d9dfb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ jobs:
2929
- name: Build solution
3030
run: dotnet build src/AiHedgeFund.sln -c Release --no-restore
3131

32+
- name: Extract version from tag
33+
id: version
34+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
35+
3236
- name: Pack NuGet packages
3337
run: |
34-
dotnet pack src/AiHedgeFund.Contracts/AiHedgeFund.Contracts.csproj -c Release --no-build --output ./nupkgs/contracts
35-
dotnet pack src/AiHedgeFund.Agents/AiHedgeFund.Agents.csproj -c Release --no-build --output ./nupkgs/agents
36-
dotnet pack src/AiHedgeFund.Data/AiHedgeFund.Data.csproj -c Release --no-build --output ./nupkgs/data
38+
VERSION=${{ steps.version.outputs.VERSION }}
39+
dotnet pack src/AiHedgeFund.Contracts/AiHedgeFund.Contracts.csproj -c Release --no-build --output ./nupkgs/contracts /p:PackageVersion=$VERSION
40+
dotnet pack src/AiHedgeFund.Agents/AiHedgeFund.Agents.csproj -c Release --no-build --output ./nupkgs/agents /p:PackageVersion=$VERSION
41+
dotnet pack src/AiHedgeFund.Data/AiHedgeFund.Data.csproj -c Release --no-build --output ./nupkgs/data /p:PackageVersion=$VERSION
3742
3843
- name: Show packaged files
3944
run: ls -lh ./nupkgs

0 commit comments

Comments
 (0)