From 86b7989cf3dfb1ebb27b296ff2659002a7580e1b Mon Sep 17 00:00:00 2001 From: Thomas Ardal Date: Tue, 14 Nov 2023 11:56:36 +0100 Subject: [PATCH] Push to NuGet --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9993cb..e8da18b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,3 +27,6 @@ jobs: run: dotnet test --no-restore --verbosity normal - name: Pack run: dotnet pack --configuration Release src/Elmah.Io.HResults/Elmah.Io.HResults.csproj /p:Version=1.0.${{ github.run_number }} + - name: Push + run: dotnet nuget push Elmah.Io.HResults.1.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + if: ${{ github.event_name == 'push' }}