diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index efc7069..ce6e9fb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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