diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/publish-nugets.yml similarity index 91% rename from .github/workflows/nuget-publish.yml rename to .github/workflows/publish-nugets.yml index f0e3b91..9475578 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/publish-nugets.yml @@ -31,8 +31,8 @@ jobs: run: dotnet restore - name: Build and Pack NuGet Package - run: dotnet pack -c Release -o ./artifacts + run: dotnet pack -c Release -o ./artifacts -p:Version=${{ env.RELEASE_VERSION }} - name: Publish to NuGet.org run: | - dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --version $RELEASE_VERSION + dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}