-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
36 lines (30 loc) · 1.21 KB
/
Makefile
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
NUGET_ADDR = http://192.168.8.11:16969
NUGET_ADDR_PROD = https://api.nuget.org/v3/index.json
NUGET_FILES=`ls ./nupkgs/*.nupkg`
build:clean
-dotnet pack ./src/Grpc.Extension.Abstract/Grpc.Extension.Abstract.csproj -c Release -o ./nupkgs
-dotnet pack ./src/Grpc.Extension.Discovery/Grpc.Extension.Discovery.csproj -c Release -o ./nupkgs
-dotnet pack ./src/Grpc.Extension.Common/Grpc.Extension.Common.csproj -c Release -o ./nupkgs
-dotnet pack ./src/Grpc.Extension.Client/Grpc.Extension.Client.csproj -c Release -o ./nupkgs
-dotnet pack ./src/Grpc.Extension/Grpc.Extension.csproj -c Release -o ./nupkgs
-dotnet pack ./src/Grpc.Extension.AspNetCore/Grpc.Extension.AspNetCore.csproj -c Release -o ./nupkgs
push-dev:build
#method one
#-dotnet nuget push ./nupkgs/*.nupkg -k ${NUGET_KEY} -s ${NUGET_ADDR}
#-dotnet nuget push ./nupkgs/**/*.nupkg -k ${NUGET_KEY} -s ${NUGET_ADDR}
#method two
for file in $(NUGET_FILES);\
do \
echo $$file;\
dotnet nuget push $$file -k ${NUGET_KEY} -s ${NUGET_ADDR};\
done;
push-prod:build
for file in $(NUGET_FILES);\
do \
echo $$file;\
dotnet nuget push $$file -k ${NUGET_KEY_PROD} -s ${NUGET_ADDR_PROD};\
done;
clean:
-rm -rf nupkgs
test:
echo ${HOME_PATA}