Skip to content

Commit

Permalink
Use tag OR commit SHA on appveyor
Browse files Browse the repository at this point in the history
Avoids error about missing env var
  • Loading branch information
tracernz committed Feb 24, 2017
1 parent 0c6379a commit d36e812
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ install:
- qbs setup-toolchains --detect
- qbs config defaultProfile MSVC2015-x86

before_build:
- ps: $env:PROJECT_REV = If ($env:APPVEYOR_REPO_TAG_NAME) {$env:APPVEYOR_REPO_TAG_NAME} Else {$env:APPVEYOR_REPO_COMMIT}

build_script:
- qbs install --install-root dist -p breakpad_client debug
- qbs install --install-root dist release
Expand All @@ -16,15 +19,15 @@ after_build:

artifacts:
- path: dist
name: dr-breakpad-msvc2015-$(APPVEYOR_REPO_TAG_NAME)
name: dr-breakpad-msvc2015-$(PROJECT_REV)
type: zip

deploy:
provider: GitHub
description: 'Automatic build'
auth_token:
secure: H2rTOfsuiqkTmu7tpwMClKRUHwQ61WoNIaC/7x95YLjTsxBMD70VHRaQnV9g7uGX
artifact: dr-breakpad-msvc2015-$(APPVEYOR_REPO_TAG_NAME).zip
artifact: dr-breakpad-msvc2015-$(PROJECT_REV).zip
draft: true
prerelease: false
force_update: true
Expand Down

0 comments on commit d36e812

Please sign in to comment.