|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +nugetpkgs=~/temp/nugetpkgs |
| 4 | +mkdir -p $nugetpkgs && rm -rf $nugetpkgs/* |
| 5 | + |
| 6 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmcli/Dtmcli.csproj |
| 7 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj |
| 8 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmgrpc/Dtmgrpc.csproj |
| 9 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj |
| 10 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmCommon/DtmCommon.csproj |
| 11 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj |
| 12 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmSERedisBarrier/DtmSERedisBarrier.csproj |
| 13 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmMongoBarrier/DtmMongoBarrier.csproj |
| 14 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/DtmDapr/DtmDapr.csproj |
| 15 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/Dtmworkflow/Dtmworkflow.csproj |
| 16 | +dotnet build --configuration Release --source https://api.nuget.org/v3/index.json src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj |
| 17 | + |
| 18 | + |
| 19 | +ver=alpha`date +%Y%m%d%H%M%S` |
| 20 | + |
| 21 | +dotnet pack src/Dtmcli/Dtmcli.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 22 | +dotnet pack src/strong-name/Dtmcli.StrongName/Dtmcli.StrongName.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 23 | +dotnet pack src/Dtmgrpc/Dtmgrpc.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 24 | +dotnet pack src/strong-name/Dtmgrpc.StrongName/Dtmgrpc.StrongName.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 25 | +dotnet pack src/DtmCommon/DtmCommon.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 26 | +dotnet pack src/strong-name/DtmCommon.StrongName/DtmCommon.StrongName.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 27 | +dotnet pack src/DtmSERedisBarrier/DtmSERedisBarrier.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 28 | +dotnet pack src/DtmMongoBarrier/DtmMongoBarrier.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 29 | +dotnet pack src/DtmDapr/DtmDapr.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 30 | +dotnet pack src/Dtmworkflow/Dtmworkflow.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 31 | +dotnet pack src/strong-name/Dtmworkflow.StrongName/Dtmworkflow.StrongName.csproj --version-suffix $ver -o $nugetpkgs -c Release --no-build |
| 32 | + |
| 33 | +for file in $nugetpkgs/*.nupkg |
| 34 | +do |
| 35 | + dotnet nuget push $file -k <token> --skip-duplicate -s <nuget feed> |
| 36 | +done |
0 commit comments