Skip to content

Commit

Permalink
Update dotnet-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 7, 2024
1 parent 10d359c commit ee09c56
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
- name: Build project and generate NuGet package
run: |
dotnet pack --configuration Release --output $GITHUB_WORKSPACE/out src/Nager.Date/Nager.Date.csproj
#- name: Push NuGet package
# if: github.event_name != 'pull_request'
# run: |
# cd $GITHUB_WORKSPACE/out
# dotnet nuget push *.nupkg --source https://www.nuget.org/api/v2/package --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols
- name: Push NuGet package
run: |
cd $GITHUB_WORKSPACE/out
dotnet nuget push *.nupkg --source https://www.nuget.org/api/v2/package --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols

0 comments on commit ee09c56

Please sign in to comment.