-
Notifications
You must be signed in to change notification settings - Fork 13
/
publish_package.sh
26 lines (24 loc) · 1.71 KB
/
publish_package.sh
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
#!/usr/bin/env bash
export NUGET_SERVER=https://api.nuget.org/v3/index.json
rm -rf src/ZMap/bin/Release
rm -rf src/ZMap.Renderer.SkiaSharp/bin/Release
rm -rf src/ZMap.Source.Postgre/bin/Release
rm -rf src/ZMap.Source.ShapeFile/bin/Release
rm -rf src/ZMap.TileGrid/bin/Release
rm -rf src/ZServer/bin/Release
rm -rf src/ZServer.Grains/bin/Release
rm -rf src/ZServer.Interfaces/bin/Release
rm -rf src/ZMap.DynamicCompiler/bin/Release
rm -rf src/ZServer.Silo/bin/Release
dotnet build -c Release ZServer.sln
dotnet pack -c Release ZServer.sln
dotnet nuget push src/ZMap/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZMap.Renderer.SkiaSharp/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZMap.Source.Postgre/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZMap.Source.ShapeFile/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZMap.TileGrid/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZServer/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZServer.Grains/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZServer.Interfaces/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZMap.DynamicCompiler/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate
dotnet nuget push src/ZServer.Silo/bin/Release/*.nupkg --source $NUGET_SERVER --api-key $NUGET_KEY --skip-duplicate