@@ -94,12 +94,8 @@ static async Task<int> MainAsync()
94
94
releaseLogLines . RemoveAt ( releaseLogLines . Count - 1 ) ;
95
95
outputLogLines . Insert ( topVersionLine + 1 , "## " + newVersion ) ;
96
96
outputLogLines . Insert ( topVersionLine + 1 , "" ) ;
97
- if ( Directory . Exists ( projDir + "/BTDB/bin/Release" ) )
98
- Directory . Delete ( projDir + "/BTDB/bin/Release" , true ) ;
99
- if ( Directory . Exists ( projDir + "/BTDB.SourceGenerator/bin/Release" ) )
100
- Directory . Delete ( projDir + "/BTDB.SourceGenerator/bin/Release" , true ) ;
101
- if ( Directory . Exists ( projDir + "/ODbDump/bin/Release" ) )
102
- Directory . Delete ( projDir + "/ODbDump/bin/Release" , true ) ;
97
+ if ( Directory . Exists ( projDir + "/artifacts" ) )
98
+ Directory . Delete ( projDir + "/artifacts" , true ) ;
103
99
var fileNameOfNugetToken =
104
100
Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + "/.nuget/token.txt" ;
105
101
string nugetToken ;
@@ -157,10 +153,10 @@ static async Task<int> MainAsync()
157
153
var release2 = await client . Repository . Release . Create ( btdbRepo . Id , release ) ;
158
154
Console . WriteLine ( "release url:" ) ;
159
155
Console . WriteLine ( release2 . HtmlUrl ) ;
160
- var uploadAsset = await UploadWithRetry ( projDir + "/BTDB /bin/Release/" , client , release2 , "BTDB.zip" ) ;
156
+ var uploadAsset = await UploadWithRetry ( projDir + "/artifacts /bin/BTDB /Release/" , client , release2 , "BTDB.zip" ) ;
161
157
Console . WriteLine ( "BTDB url:" ) ;
162
158
Console . WriteLine ( uploadAsset . BrowserDownloadUrl ) ;
163
- uploadAsset = await UploadWithRetry ( projDir + "/ODbDump /bin/Release/" , client , release2 , "ODbDump.zip" ) ;
159
+ uploadAsset = await UploadWithRetry ( projDir + "/artifacts /bin/ODbDump /Release/" , client , release2 , "ODbDump.zip" ) ;
164
160
Console . WriteLine ( "ODbDump url:" ) ;
165
161
Console . WriteLine ( uploadAsset . BrowserDownloadUrl ) ;
166
162
Console . WriteLine ( "Press Enter for finish" ) ;
@@ -214,7 +210,7 @@ static void Build(string projDir, string newVersion, string nugetToken)
214
210
var process = Process . Start ( start ) ;
215
211
process ! . WaitForExit ( ) ;
216
212
var source = projDir + "/BTDB" ;
217
- var releaseSources = projDir + "/BTDB /bin/Release/Sources" ;
213
+ var releaseSources = projDir + "/artifacts /bin/BTDB /Release/Sources" ;
218
214
foreach ( var fn in Directory . GetFiles ( source , "*.*" , SearchOption . AllDirectories ) . ToList ( ) )
219
215
{
220
216
var relfn = fn . Substring ( source . Length + 1 ) ;
@@ -224,12 +220,12 @@ static void Build(string projDir, string newVersion, string nugetToken)
224
220
File . Copy ( fn , releaseSources + "/" + relfn ) ;
225
221
}
226
222
227
- System . IO . Compression . ZipFile . CreateFromDirectory ( releaseSources , projDir + "/BTDB /bin/Release/BTDB.zip" ,
223
+ System . IO . Compression . ZipFile . CreateFromDirectory ( releaseSources , projDir + "/artifacts /bin/BTDB /Release/BTDB.zip" ,
228
224
System . IO . Compression . CompressionLevel . Optimal , false ) ;
229
225
start = new ( "dotnet" , "nuget push BTDB." + newVersion + ".nupkg -s https://nuget.org -k " + nugetToken )
230
226
{
231
227
UseShellExecute = true ,
232
- WorkingDirectory = projDir + "/BTDB /bin/Release"
228
+ WorkingDirectory = projDir + "/artifacts /bin/BTDB /Release"
233
229
} ;
234
230
process = Process . Start ( start ) ;
235
231
process ! . WaitForExit ( ) ;
@@ -248,7 +244,7 @@ static void BuildSourceGenerator(string projDir, string newVersion, string nuget
248
244
"nuget push BTDB.SourceGenerator." + newVersion + ".nupkg -s https://nuget.org -k " + nugetToken )
249
245
{
250
246
UseShellExecute = true ,
251
- WorkingDirectory = projDir + "/BTDB.SourceGenerator/bin /Release"
247
+ WorkingDirectory = projDir + "/artifacts/bin/ BTDB.SourceGenerator/Release"
252
248
} ;
253
249
process = Process . Start ( start ) ;
254
250
process ! . WaitForExit ( ) ;
@@ -263,9 +259,9 @@ static void BuildODbDump(string projDir)
263
259
} ;
264
260
var process = Process . Start ( start ) ;
265
261
process ! . WaitForExit ( ) ;
266
- var source = projDir + "/ODbDump/bin/Release/net8.0/publish " ;
262
+ var source = projDir + "/artifacts/publish/ODbDump/Release " ;
267
263
System . IO . Compression . ZipFile . CreateFromDirectory ( source ,
268
- projDir + "/ODbDump /bin/Release/ODbDump.zip" ,
264
+ projDir + "/artifacts /bin/ODbDump /Release/ODbDump.zip" ,
269
265
System . IO . Compression . CompressionLevel . Optimal , false ) ;
270
266
}
271
267
}
0 commit comments