@@ -70,11 +70,12 @@ static async Task<int> MainAsync()
70
70
Console . WriteLine ( "Press 1 for Major " + majorVersionNumber . ToString ( 3 ) ) ;
71
71
Console . WriteLine ( "Press 2 for Minor " + minorVersionNumber . ToString ( 3 ) ) ;
72
72
Console . WriteLine ( "Press 3 for Patch " + patchVersionNumber . ToString ( 3 ) ) ;
73
+ Console . WriteLine ( "Press 4 for Nuget repush" ) ;
73
74
var choice = Console . ReadKey ( ) . KeyChar ;
74
75
Console . WriteLine ( ) ;
75
- if ( choice < '1' || choice > '3 ' )
76
+ if ( choice < '1' || choice > '4 ' )
76
77
{
77
- Console . WriteLine ( "Not pressed 1, 2 or 3 . Exiting." ) ;
78
+ Console . WriteLine ( "Not pressed 1, 2, 3 or 4 . Exiting." ) ;
78
79
return 1 ;
79
80
}
80
81
@@ -113,6 +114,7 @@ static async Task<int> MainAsync()
113
114
BuildSourceGenerator ( projDir , newVersion , nugetToken ) ;
114
115
BuildODbDump ( projDir ) ;
115
116
117
+ if ( choice == '4' ) return 0 ;
116
118
var client = new GitHubClient ( new ProductHeaderValue ( "BTDB-releaser" ) ) ;
117
119
client . SetRequestTimeout ( TimeSpan . FromMinutes ( 15 ) ) ;
118
120
var fileNameOfGithubToken =
@@ -156,7 +158,8 @@ static async Task<int> MainAsync()
156
158
var uploadAsset = await UploadWithRetry ( projDir + "/artifacts/bin/BTDB/Release/" , client , release2 , "BTDB.zip" ) ;
157
159
Console . WriteLine ( "BTDB url:" ) ;
158
160
Console . WriteLine ( uploadAsset . BrowserDownloadUrl ) ;
159
- uploadAsset = await UploadWithRetry ( projDir + "/artifacts/bin/ODbDump/Release/" , client , release2 , "ODbDump.zip" ) ;
161
+ uploadAsset =
162
+ await UploadWithRetry ( projDir + "/artifacts/bin/ODbDump/Release/" , client , release2 , "ODbDump.zip" ) ;
160
163
Console . WriteLine ( "ODbDump url:" ) ;
161
164
Console . WriteLine ( uploadAsset . BrowserDownloadUrl ) ;
162
165
Console . WriteLine ( "Press Enter for finish" ) ;
@@ -220,7 +223,8 @@ static void Build(string projDir, string newVersion, string nugetToken)
220
223
File . Copy ( fn , releaseSources + "/" + relfn ) ;
221
224
}
222
225
223
- System . IO . Compression . ZipFile . CreateFromDirectory ( releaseSources , projDir + "/artifacts/bin/BTDB/release/BTDB.zip" ,
226
+ System . IO . Compression . ZipFile . CreateFromDirectory ( releaseSources ,
227
+ projDir + "/artifacts/bin/BTDB/release/BTDB.zip" ,
224
228
System . IO . Compression . CompressionLevel . Optimal , false ) ;
225
229
start = new ( "dotnet" , "nuget push BTDB." + newVersion + ".nupkg -s https://nuget.org -k " + nugetToken )
226
230
{
0 commit comments