File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments