Skip to content

Commit

Permalink
Update PublishToNuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanimul Haque Khan authored Aug 23, 2021
1 parent 1aa738a commit 3608f91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/PublishToNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ jobs:
run: dotnet test --configuration Release /p:Version=${{ steps.get_version.outputs.version-without-v }} --no-build
- name: Pack
run: dotnet pack --configuration Release /p:Version=${{ steps.get_version.outputs.version-without-v }}
- name: Push with dotnet
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
#- name: Push with dotnet
# run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: publish nuget package
uses: dansiegel/publish-nuget@2
with:
filename: '*.nupkg'
apiKey: ${{ secrets.NUGET_API_KEY }}



0 comments on commit 3608f91

Please sign in to comment.