-
Notifications
You must be signed in to change notification settings - Fork 70
/
publish-packages.ps1
25 lines (22 loc) · 1.11 KB
/
publish-packages.ps1
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
if (Test-path .\SpecsFor.Core\bin\Debug\SpecsFor.Core.*.nupkg) {
rm (Resolve-Path .\SpecsFor.Core\bin\Debug\SpecsFor.Core.*.nupkg)
}
if (Test-path .\SpecsFor.StructureMap\bin\Debug\SpecsFor.StructureMap.*.nupkg) {
rm (Resolve-Path .\SpecsFor.StructureMap\bin\Debug\SpecsFor.StructureMap.*.nupkg)
}
if (Test-path .\SpecsFor.Autofac\bin\Debug\SpecsFor.Autofac.*.nupkg) {
rm (Resolve-Path .\SpecsFor.Autofac\bin\Debug\SpecsFor.Autofac.*.nupkg)
}
if (Test-path .\SpecsFor.*.nupkg) {
rm (Resolve-Path .\SpecsFor.*.nupkg)
}
dotnet pack .\SpecsFor.Core\SpecsFor.Core.csproj
dotnet pack .\SpecsFor.StructureMap\SpecsFor.StructureMap.csproj
dotnet pack .\SpecsFor.Autofac\SpecsFor.Autofac.csproj
nuget pack .\metapackage\specsfor-metapackage.nuspec
Write-Host "Packages built, publish?"
pause
dotnet nuget push (Resolve-Path .\SpecsFor.Core\bin\Debug\SpecsFor.Core.*.nupkg)
dotnet nuget push (Resolve-Path .\SpecsFor.StructureMap\bin\Debug\SpecsFor.StructureMap.*.nupkg)
dotnet nuget push (Resolve-Path .\SpecsFor.Autofac\bin\Debug\SpecsFor.Autofac.*.nupkg)
dotnet nuget push (Resolve-Path .\SpecsFor.*.nupkg)