-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnupkg.ps1
19 lines (12 loc) · 838 Bytes
/
nupkg.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#递归删除文件
Get-ChildItem * -Include *.nupkg -Recurse | Remove-Item
Get-ChildItem * -Include *.snupkg -Recurse | Remove-Item
$nugetkey="$($args[0])"
#Pack
dotnet pack src\DistributedLocker\DistributedLocker.csproj --output packages --configuration Release
dotnet pack src\DistributedLocker.DataBase\DistributedLocker.DataBase.csproj --output packages --configuration Release
dotnet pack src\DistributedLocker.Oracle\DistributedLocker.Oracle.csproj --output packages --configuration Release
dotnet pack src\DistributedLocker.Postgres\DistributedLocker.Postgres.csproj --output packages --configuration Release
dotnet pack src\DistributedLocker.SqlServer\DistributedLocker.SqlServer.csproj --output packages --configuration Release
#Push
dotnet nuget push packages\*.nupkg -s https://api.nuget.org/v3/index.json -k $nugetkey