Skip to content

Commit 413c070

Browse files
committed
Made project built in release mode in workflow
1 parent 5282da3 commit 413c070

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/nuget.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Publish NuGet Package
1+
name: Build & Test & Publish NuGet Package
22

33
on:
44
push:
@@ -19,11 +19,9 @@ jobs:
1919
- name: Restore dependencies
2020
run: dotnet restore
2121
- name: Build
22-
run: dotnet build --no-restore
22+
run: dotnet build --no-restore --configuration Release
2323
- name: Test
2424
run: dotnet test --no-build --verbosity normal
25-
- name: Pack NuGet Packages
26-
run: dotnet pack ./src/ThreadSharp/ThreadSharp.csproj --output nupkgs --no-restore --no-build
2725
- name: Upload NuGet Package
2826
if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
29-
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
27+
run: dotnet nuget push ./src/ThreadSharp/bin/Release/ThreadSharp.*.**.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)