diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 11ab43c..b0b601c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -84,6 +84,11 @@ jobs: run: dotnet nuget push "Verify.MongoDB/bin/Release/*.nupkg" --source ${{ env.source-url }} -k ${{ secrets.GITHUB_TOKEN }} if: github.ref == 'refs/heads/main' + - name: Publish the package to nuget.org + run: dotnet nuget push "Verify.MongoDB/bin/Release/*.nupkg" --source https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} + - name: Build logs uses: actions/upload-artifact@v3 with: diff --git a/README.md b/README.md index 0f0e8c7..9424f27 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Verify.MongoDB [![.NET](https://github.com/flcdrg/Verify.MongoDB/actions/workflows/dotnet.yml/badge.svg)](https://github.com/flcdrg/Verify.MongoDB/actions/workflows/dotnet.yml) +[![NuGet Status](https://img.shields.io/nuget/v/Verify.MongoDB.svg?label=Verify.MongoDB)](https://www.nuget.org/packages/Verify.MongoDB/) Extends [Verify](https://github.com/VerifyTests/Verify) to allow verification of MongoDB bits. @@ -36,7 +37,7 @@ clientSettings.EnableRecording(MongoDbEvents.Succeeded | MongoDbEvents.Failed); ### Usage -To start recording call `MongoDbRecording.StartRecording()`. The results will be automatically included in verified file. +To start recording call `MongoDbRecording.StartRecording()`. The results will be automatically included in the verified file. ```csharp MongoDBRecording.StartRecording(); diff --git a/Verify.MongoDB/Verify.MongoDB.csproj b/Verify.MongoDB/Verify.MongoDB.csproj index f1de42d..b363455 100644 --- a/Verify.MongoDB/Verify.MongoDB.csproj +++ b/Verify.MongoDB/Verify.MongoDB.csproj @@ -11,7 +11,8 @@ embedded https://github.com/flcdrg/Verify.MongoDB/graphs/contributors True - + README.md + true true @@ -23,4 +24,8 @@ + + + +