-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.sh
37 lines (27 loc) · 1.18 KB
/
publish.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
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
if [[ "$TRAVIS_BRANCH" = "master" ]] && [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then
pushd Inversion.Data/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.AmazonSNS/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.AmazonSQS/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.Couchbase/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.DynamoDB/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.MongoDB/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.Redis/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
pushd Inversion.Data.Sql/bin/Debug
dotnet nuget push *.nupkg -k $NUGET_KEY -s https://api.nuget.org/v3/index.json || exit 1
popd
fi