070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
41 lines
1.1 KiB
PowerShell
41 lines
1.1 KiB
PowerShell
param(
|
|
[string]$IndexPath = "",
|
|
[string]$ManifestRoot = "",
|
|
[string]$ChannelPrefix = "beta",
|
|
[string]$Platform = "win",
|
|
[switch]$Publish,
|
|
[switch]$Probe,
|
|
[switch]$ProbeOnly
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$publishPlatformScript = Join-Path $PSScriptRoot "publish-platform.ps1"
|
|
$publishMetadataScript = Join-Path $PSScriptRoot "publish-beta-metadata.ps1"
|
|
|
|
& $publishPlatformScript `
|
|
-IndexPath $IndexPath `
|
|
-ChannelPrefix $ChannelPrefix `
|
|
-Platform $Platform `
|
|
-Publish:$Publish `
|
|
-Probe:$Probe `
|
|
-ProbeOnly:$ProbeOnly
|
|
if ($LASTEXITCODE -ne 0 -or $ProbeOnly) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
|
|
if ([string]::IsNullOrWhiteSpace($ManifestRoot)) {
|
|
if ([string]::IsNullOrWhiteSpace($IndexPath)) {
|
|
$IndexPath = "C:\.tmp\runner\od-beta\win\index\index.json"
|
|
}
|
|
$resolvedIndexPath = Resolve-Path -LiteralPath $IndexPath
|
|
$platformRoot = Split-Path -Parent (Split-Path -Parent $resolvedIndexPath.Path)
|
|
$ManifestRoot = Join-Path $platformRoot "publish\manifests"
|
|
}
|
|
|
|
& $publishMetadataScript `
|
|
-ManifestRoot $ManifestRoot `
|
|
-ChannelPrefix $ChannelPrefix `
|
|
-Publish:$Publish
|
|
exit $LASTEXITCODE
|