-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.PSDeploy.ps1
26 lines (22 loc) · 1.19 KB
/
deploy.PSDeploy.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
<#
This is a PSDeploy Script file
https://github.com/RamblingCookieMonster/PSDeploy
NOTE: Change the Repository Parameter as needed!
See https://bit.ly/2TRHVF6 for details, under "appveyor.yml"
#>
$Repository = "PSGallery" # https://github.com/RamblingCookieMonster/PSDeploy/blob/master/PSDeploy/PSDeployScripts/PSGalleryModule.ps1
Write-Output " Publishing $ENV:BHProjectName--->"
Write-Output "Attempting to publish to $Repository..."
# https://psdeploy.readthedocs.io/en/latest/PSDeploy-Configuration-Files/
if($ENV:BHProjectName -and (Test-Path -Path ".\output\$ENV:BHProjectName"))
{
Deploy Module { # Deployment name
By PSGalleryModule { # Deployment type
FromSource output\$ENV:BHProjectName # One or more sources to deploy. These are specific to your DeploymentType
To $Repository # One or more destinations to target for deployment. These are specific to a DeploymentType
WithOptions @{ # Deployment options hash table to pass as parameters to DeploymentType script.
ApiKey = $ENV:NugetApiKey
}
}
}
}