Skip to content

Commit

Permalink
Dont try to push packages when building pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-edmondson committed Feb 29, 2024
1 parent 6692351 commit 10e0046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
- name: Create the package for nuget
run: dotnet pack --include-source --configuration Release --output . -p:SymbolPackageFormat=snupkg -p:RepositoryUrl=${{ github.server_url }}/${{ github.repository }} -p:RepositoryCommit=${{ github.sha }} -p:PackageProjectUrl=${{ github.server_url }}/${{ github.repository }}
- name: Publish the package to nuget
if: ${{ github.event_name == 'push' }}
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 10e0046

Please sign in to comment.