This change eliminates our dependencies on the SDK repo. Now that SDKs are comprised solely of pulumi/pulumi artifacts, a separate repo isn't required. This allows us to simplify some of the distribution. The install.sh script is modified slightly, to permit overriding the default install location using $PULUMI_INSTALL_PATH.
20 lines
675 B
PowerShell
20 lines
675 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"
|
|
$BuildSdkScript="$(go env GOPATH)\src\github.com\pulumi\pulumi\scripts\build-sdk.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/amd64" @PublishTargets
|
|
|
|
Remove-Item -Force $ReleaseInfo.ArchivePath
|
|
|
|
$Version=& $PSScriptRoot\get-version.ps1
|
|
& $BuildSdkScript $Version "$(git rev-parse HEAD)"
|