Skip to content

Commit

Permalink
(build): include publish folder in glob pattern
Browse files Browse the repository at this point in the history
pack symbols as .snupkg
  • Loading branch information
fb-smit committed Nov 21, 2023
1 parent e4f6830 commit e14efa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ 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
with:
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

0 comments on commit e14efa4

Please sign in to comment.