before_deploy.ps1 (576B)
1 # This script takes care of packaging the build artifacts that will go in the 2 # release zipfile 3 4 $SRC_DIR = $PWD.Path 5 $STAGE = [System.Guid]::NewGuid().ToString() 6 7 Set-Location $ENV:Temp 8 New-Item -Type Directory -Name $STAGE 9 Set-Location $STAGE 10 11 $ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip" 12 13 # TODO Update this to package the right artifacts 14 Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\hello.exe" '.\' 15 16 7z a "$ZIP" * 17 18 Push-AppveyorArtifact "$ZIP" 19 20 Remove-Item *.* -Force 21 Set-Location .. 22 Remove-Item $STAGE 23 Set-Location $SRC_DIR