Created
June 5, 2014 10:12
-
-
Save krunalm/6dac078dce7f776bce73 to your computer and use it in GitHub Desktop.
appveyor deplyment name with version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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