diff --git a/Publish.bat b/Publish.bat new file mode 100644 index 0000000..a32ae61 --- /dev/null +++ b/Publish.bat @@ -0,0 +1,31 @@ +@echo off + +::create nuget_pub +if not exist nuget_pub ( + md nuget_pub +) + +::clear nuget_pub +for /R "nuget_pub" %%s in (*) do ( + del %%s +) + +::Bing.Extensions.Swashbuckle +dotnet pack src/Bing.Extensions.Swashbuckle -c Release -o nuget_pub + +for /R "nuget_pub" %%s in (*symbols.nupkg) do ( + del %%s +) + +echo. +echo. + +set /p key=input key: +set source=https://api.nuget.org/v3/index.json + +for /R "nuget_pub" %%s in (*.nupkg) do ( + call dotnet nuget push %%s -k %key% -s %source% + echo. +) + +pause \ No newline at end of file diff --git a/build/version.props b/build/version.props index ddb4dca..2d6e5c5 100644 --- a/build/version.props +++ b/build/version.props @@ -1,8 +1,8 @@ 1 - 1 - 2 + 2 + 0 20200512-1 $(VersionMajor).$(VersionMinor).$(VersionPatch)