before_deploy.ps1
This file
Path
ci/before_deploy.ps1
26 lines · 639 bytes
Last changed by
Add missing CI script for Windowssharkdpbefore adoption094b76d
History of this fileTake it
1# This script takes care of packaging the build artifacts that will go in the2# release zipfile34$SRC_DIR = $PWD.Path5$STAGE = [System.Guid]::NewGuid().ToString()67Set-Location $ENV:Temp8New-Item -Type Directory -Name $STAGE9Set-Location $STAGE1011$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"1213Copy-Item "$SRC_DIR\target\release\hyperfine.exe" '.\'1415# readme and license16Copy-Item $SRC_DIR\README.md '.\'17Copy-Item $SRC_DIR\LICENSE-MIT '.\'18Copy-Item $SRC_DIR\LICENSE-APACHE '.\'19207z a "$ZIP" *2122Push-AppveyorArtifact "$ZIP"2324Set-Location ..25Remove-Item $STAGE -Force -Recurse26Set-Location $SRC_DIR