Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pvandervelde/9cf270ef5266b18a1ac9 to your computer and use it in GitHub Desktop.
Save pvandervelde/9cf270ef5266b18a1ac9 to your computer and use it in GitHub Desktop.
AppVeyor workspace restore for the nBuildKit delivery build.
# Halt immediately if there is a problem
$ErrorActionPreference = "Stop"
"PATH is: "
$env:Path
"GitHub-release environment variable is: "
$env:GitHubReleasePath
$currentDir = $pwd
$projectDir = "c:\projects"
$scriptDir = "c:\projects\scripts"
$branchToDeploy = $env:BranchToDeploy
# Restore artifacts
try
{
& $scriptDir\src\ps\appveyor-deploy-restore-nbuildkit-workspace.ps1 `
-scriptPath $scriptDir `
-projectPath $projectDir `
-accountName pvandervelde `
-projectToDeploy nbuildkit `
-branchToDeploy $branchToDeploy `
-artifactsToDeploy build\deploy\nBuildKit.MsBuild._#version#_.nupkg,build\deploy\nBuildKit.MsBuild.Projects.CSharp._#version#_.nupkg,build\deploy\nBuildKit.MsBuild.Projects.WiX._#version#_.nupkg,build\deploy\nbuildkit.msbuild.samples-_#version#_.zip,build\temp\releasenotes_full.md,build\temp\releasenotes_short.md
}
finally
{
sl $currentDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment