Skip to content

Instantly share code, notes, and snippets.

@krunalm
Created June 5, 2014 10:12
Show Gist options
  • Save krunalm/6dac078dce7f776bce73 to your computer and use it in GitHub Desktop.
Save krunalm/6dac078dce7f776bce73 to your computer and use it in GitHub Desktop.
appveyor deplyment name with version
function ZipFiles($zipfilename, $sourcedir)
{
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, $zipfilename, $compressionLevel, $false)
}
# Step 1 - Sign all output assemblies
# TODO
# Step 2 - Zip up output directory (CIVersionTest\bin\Release)
$binPath = "C:\projects\metrostylewpfapp\MetroStyleWPFApp\bin\"
$zipName = "MetroStyleWPFApp.Release.v$($env:APPVEYOR_BUILD_VERSION).zip"
$zipFullPath = "$($binPath)$($zipName)"
ZipFiles "$($zipFullPath)" "$($binPath)Release" | Out-Null # out-null so that this command doesn't print anything
# Step 3 - Upload zip file as build artifact
Push-AppveyorArtifact "$($zipFullPath)" -FileName $zipName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment