Skip to content

Commit

Permalink
Mark master branch builds as full releases (not pre-releases) on GitHub
Browse files Browse the repository at this point in the history
(cherry picked from commit ca39634)
  • Loading branch information
qris committed Dec 20, 2017
1 parent 24aca3f commit 613fc91
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions appveyor.yml
Expand Up @@ -63,3 +63,26 @@ test_script:
# - dir %PLATFORM%\%CONFIGURATION%
- ctest -C %CONFIGURATION% -V --interactive-debug-mode 0

# After running tests successfully, build the artifacts that we want to upload:
- cmake --build . --config %CONFIGURATION% --target package

# AppVeyor refuses to package files outside of the project directory, so we need to push them:
- dir
- appveyor PushArtifact -path BoxBackup-%compiled_version%.zip -DeploymentName BoxBackup-%compiled_version%
- appveyor PushArtifact -path BoxBackup-%compiled_version%.exe -DeploymentName BoxBackup-%compiled_version%

deploy:
- provider: GitHub
release: BoxBackup-$(boxbackup_version_full)
artifact: BoxBackup-$(compiled_version)
description: "Windows client binaries auto-built by AppVeyor"
draft: false
# Master branch builds are full releases (not pre-releases), all others are pre-releases
prerelease: $(if ($env:APPVEYOR_REPO_BRANCH.equals('master')) {'false'} else {'true'})"
auth_token:
secure: WZi3MJGA5zIIAAij0if4auYeltJlyWUOePTYlCGvrNrgEVjYRkqILHzvVKDnLn43
on:
branch:
- master
- s3_support_merge
- mark_master_builds_as_full_releases

0 comments on commit 613fc91

Please sign in to comment.