Skip to content

Archive only tagged builds on appveyor #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .build/.appveyor/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ make $env:BUILD_TARGET 2>&1
dir dist
mkdir release

cp dist\user-sync.exe release\
cd release
7z a "user-sync-${env:APPVEYOR_REPO_TAG_NAME}${env:BUILD_EDITION}-win64.zip" user-sync.exe
cd ..
7z a -ttar release\examples.tar examples
7z a -tgzip release\examples.tar.gz release\examples.tar
7z a release\examples.zip examples\
dir release
if (${env:APPVEYOR_REPO_TAG} -eq $true)
{
Write-Host "Archiving artifacts for tagged commit"
cp dist\user-sync.exe release\
cd release
7z a "user-sync-${env:APPVEYOR_REPO_TAG_NAME}${env:BUILD_EDITION}-win64.zip" user-sync.exe
cd ..
7z a -ttar release\examples.tar examples
7z a -tgzip release\examples.tar.gz release\examples.tar
7z a release\examples.zip examples\
dir release
} else {
Write-Host "Skipping artifact archival for non-tagged commit"
}