Skip to content

Commit

Permalink
chore: 发布 1.2.0 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
jianxuanbing committed May 18, 2020
1 parent 2bc7dce commit e3bce2c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions Publish.bat
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions build/version.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<VersionMajor>1</VersionMajor>
<VersionMinor>1</VersionMinor>
<VersionPatch>2</VersionPatch>
<VersionMinor>2</VersionMinor>
<VersionPatch>0</VersionPatch>
<VersionQuality>20200512-1</VersionQuality>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
<!--<VersionSuffix>preview-$(VersionQuality)</VersionSuffix>-->
Expand Down

0 comments on commit e3bce2c

Please sign in to comment.