forked from wwahammy/SQLiteParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.ps1
27 lines (25 loc) · 785 Bytes
/
deploy.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
26
Param (
$variables = @{},
$artifacts = @{},
$scriptPath,
$buildFolder,
$srcFolder,
$outFolder,
$tempFolder,
$projectName,
$projectVersion,
$projectBuildNumber
)
# list all artifacts
foreach($artifact in $artifacts.values)
{
Write-Output "Artifact: $($artifact.name)"
Write-Output "Type: $($artifact.type)"
Write-Output "Path: $($artifact.path)"
Write-Output "Url: $($artifact.url)"
}
$artifact = $artifacts
cd $srcFolder
Write-Output "Source Folder: $srcFolder"
Write-Output ".\.nuget\nuget.exe push $($artifacts.values[0].path) $($variables["secureNuGetApiKey"]) -Source $($variables["nugetApiUri"])"
.\.nuget\nuget.exe push $($artifacts.values[0].path) $variables["secureNuGetApiKey"] -Source $variables["nugetApiUri"]