-
Notifications
You must be signed in to change notification settings - Fork 13
/
publish_package.bat
32 lines (32 loc) · 1.65 KB
/
publish_package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NUGET_SERVER='https://api.nuget.org/v3/index.json'
Remove-Item 'src/ZMap/bin/Release' -Recurse
Remove-Item 'src/ZMap/bin/Release' -Recurse
Remove-Item 'src/ZMap.Renderer.SkiaSharp/bin/Release' -Recurse
Remove-Item 'src/ZMap.Source.Postgre/bin/Release' -Recurse
Remove-Item 'src/ZMap.Source.ShapeFile/bin/Release' -Recurse
Remove-Item 'src/ZMap.TileGrid/bin/Release' -Recurse
Remove-Item 'src/ZServer/bin/Release' -Recurse
Remove-Item 'src/ZServer.Grains/bin/Release' -Recurse
Remove-Item 'src/ZServer.Interfaces/bin/Release' -Recurse
Remove-Item 'src/ZMap.DynamicCompiler/bin/Release' -Recurse
Remove-Item 'src/ZMap/bin/Debug' -Recurse
Remove-Item 'src/ZMap/bin/Debug' -Recurse
Remove-Item 'src/ZMap.Renderer.SkiaSharp/bin/Debug' -Recurse
Remove-Item 'src/ZMap.Source.Postgre/bin/Debug' -Recurse
Remove-Item 'src/ZMap.Source.ShapeFile/bin/Debug' -Recurse
Remove-Item 'src/ZMap.TileGrid/bin/Debug' -Recurse
Remove-Item 'src/ZServer/bin/Debug' -Recurse
Remove-Item 'src/ZServer.Grains/bin/Debug' -Recurse
Remove-Item 'src/ZServer.Interfaces/bin/Debug' -Recurse
Remove-Item 'src/ZMap.DynamicCompiler/bin/Debug' -Recurse
dotnet build -c Release ZServer.sln
dotnet pack -c Release ZServer.sln
Remove-Item 'src/Client/bin/Release' -Recurse
Remove-Item 'src/Console/bin/Release' -Recurse
Remove-Item 'src/ZServer.Benchmark/bin/Release' -Recurse
Remove-Item 'src/ZServer.SiloHost/bin/Release' -Recurse
Remove-Item 'src/Client/bin/Debug' -Recurse
Remove-Item 'src/Console/bin/Debug' -Recurse
Remove-Item 'src/ZServer.Benchmark/bin/Debug' -Recurse
Remove-Item 'src/ZServer.SiloHost/bin/Debug' -Recurse
dotnet nuget push **/*.nupkg --source $NUGET_SERVER --api-key $env:NUGET_KEY --skip-duplicate