diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d32cca..e584e80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: - name: Build run: dotnet build --configuration Release --no-restore - - name: Test .NET + - name: Test env: SECRET_BASE_URL: ${{ secrets.SECRET_BASE_URL }} SECRET_API_KEY: ${{ secrets.SECRET_API_KEY }} @@ -38,6 +38,6 @@ jobs: - name: Pack run: dotnet pack --configuration Release src/Elmah.Io.Client/Elmah.Io.Client.csproj /p:Version=5.2.${{ github.run_number }}-pre - #- name: Push - # run: dotnet nuget push src/Elmah.Io.Client/bin/Release/Elmah.Io.Client.5.2.${{ github.run_number }}-pre.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json - # if: ${{ github.event_name == 'push' }} + - name: Push + run: dotnet nuget push src/Elmah.Io.Client/bin/Release/Elmah.Io.Client.5.2.${{ github.run_number }}-pre.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + if: ${{ github.event_name == 'push' }}