Skip to content

Commit 39b230a

Browse files
committed
Use dotnet pack command
1 parent ec6ad1a commit 39b230a

4 files changed

Lines changed: 3 additions & 68 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ jobs:
5353

5454
- name: Package NuGet
5555
run: |
56-
nuget pack ../nuspec/nuget/BBT.StructureTools.nuspec
57-
nuget pack ../nuspec/nuget/BBT.StructureTools.Extensions.nuspec
56+
dotnet pack -c $BUILD_CONFIG -p:PackageVersion=$BUILD_VERSION
5857
5958
- name: Publish NuGet
6059
run: |
61-
nuget push ./BBT.StructureTools.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}
62-
nuget push ./BBT.StructureTools.Extensions.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}
60+
nuget push ./BBT.StructureTools/bin/Release/BBT.StructureTools.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}
61+
nuget push ./BBT.StructureTools.Extensions/bin/Release/BBT.StructureTools.Extensions.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}

nuspec/nuget/BBT.StructureTools.Extensions.nuspec

Lines changed: 0 additions & 32 deletions
This file was deleted.

nuspec/nuget/BBT.StructureTools.nuspec

Lines changed: 0 additions & 32 deletions
This file was deleted.

nuspec/nuget/icon.png

-2.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)