Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit ad07593

Browse files
authored
Update dotnet-nuget.yml
1 parent ed5255c commit ad07593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dotnet-nuget.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
path: ${{ env.PROJECT_NAME }}
3939

4040
- name: Package
41-
run: dotnet pack -c Release -o . '${{ env.PROJECT_NAME }}/${{ env.PROJECT_FILE }}'
41+
run: dotnet pack -c Release -o . '${{ env.PROJECT_NAME }}/${{ env.PROJECT_FILE }}' -p:Version=${{ steps.gitversion.outputs.SemVer }}
4242

4343
- name: Publish on NuGet
44-
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
44+
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json -NoSymbols -SkipDuplicate
4545

4646
- name: Create release
4747
uses: actions/create-release@v1

0 commit comments

Comments
 (0)