mirror of https://github.com/pulumi/pulumi.git
17 lines
494 B
PowerShell
17 lines
494 B
PowerShell
# publish.ps1 builds and publishes a release.
|
|
Set-StrictMode -Version 2.0
|
|
$ErrorActionPreference="Stop"
|
|
|
|
$PublishScript="$(go env GOPATH)\src\github.com\pulumi\home\scripts\publish.ps1"
|
|
|
|
if (!(Test-Path $PublishScript)) {
|
|
Write-Error "Missing publish script at $PublishScript"
|
|
}
|
|
|
|
$ReleaseInfo=& $PSScriptRoot\make_release.ps1
|
|
|
|
$PublishTargets=${ReleaseInfo}.Targets
|
|
& $PublishScript $ReleaseInfo.ArchivePath "pulumi/windows/x64" @PublishTargets
|
|
|
|
Remove-Item -Force $ReleaseInfo.ArchivePath
|