From e14efa41921840855e601c7e7599d5be11a2c786 Mon Sep 17 00:00:00 2001 From: "fabian.bornschlegl" Date: Tue, 21 Nov 2023 14:50:03 +0100 Subject: [PATCH] (build): include publish folder in glob pattern pack symbols as .snupkg --- .github/workflows/dotnet-main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-main.yml b/.github/workflows/dotnet-main.yml index fdf7367..d125f1a 100644 --- a/.github/workflows/dotnet-main.yml +++ b/.github/workflows/dotnet-main.yml @@ -78,7 +78,7 @@ jobs: run: cat ./coverage-results/Summary.md >> $GITHUB_STEP_SUMMARY - name: Create package - run: dotnet pack --no-restore --nologo --no-build -p:PackageOutputPath='./publish' -c Release -p:PackageVersion=${NBGV_SimpleVersion} -p:PublicRelease=true --include-symbols --include-source + run: dotnet pack --no-restore --nologo --no-build -p:PackageOutputPath='./publish' -c Release -p:PackageVersion=${NBGV_SimpleVersion} -p:PublicRelease=true -p:SymbolPackageFormat=snupkg --include-symbols --include-source - name: Upload publish artifacts uses: actions/upload-artifact@v3 @@ -86,5 +86,5 @@ jobs: name: upload artifacts path: '**/publish/*' - name: Publish nuget packages - run: dotnet nuget push "**/*.nupkg" -s 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate + run: dotnet nuget push "**/publish/*.nupkg" -s 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate