ci: deployment config for beta+stable (#2976)

This commit is contained in:
tooomm 2017-12-29 00:33:16 +01:00 committed by Zach H
parent 3af2be4539
commit f0f73c8f77
3 changed files with 70 additions and 29 deletions

View file

@ -14,13 +14,13 @@ skip_commits:
- '*.md'
- Dockerfile
- LICENSE
image: Visual Studio 2015
cache:
- c:\protobuf-release
- c:\zlib-release
environment:
matrix:
- qt_ver: 5.9\msvc2015_64
@ -35,7 +35,7 @@ environment:
cmake_generator: Visual Studio 14 2015
cmake_toolset: v140
target_arch: x86
install:
- ps: |
if (Test-Path c:\protobuf-release) {
@ -56,10 +56,10 @@ install:
cmake . -G "$env:cmake_generator" -T "$env:cmake_toolset" -DCMAKE_INSTALL_PREFIX=c:/zlib-release
msbuild INSTALL.vcxproj /p:Configuration=Release
}
services:
- mysql
build_script:
- ps: |
New-Item -ItemType directory -Path $env:APPVEYOR_BUILD_FOLDER\build
@ -83,17 +83,35 @@ build_script:
test: off
# Builds for pull requests skip the deployment step altogether
deploy:
provider: GitHub
auth_token:
secure: p+7wPVry2XEa6TBm9XH8IaQZbBmXQ/J2ldbGmcIxUZD3NkkPrSRRlmE7Of1CBBIO
description: "Dev build of Cockatrice"
artifact: /.*\.exe/
draft: false
prerelease: true
force_update: true
on:
appveyor_repo_tag: true
# Deploy configuration for "beta" releases
- provider: GitHub
auth_token:
secure: p+7wPVry2XEa6TBm9XH8IaQZbBmXQ/J2ldbGmcIxUZD3NkkPrSRRlmE7Of1CBBIO
release: "Cockatrice $APPVEYOR_REPO_TAG_NAME"
description: "Beta release of Cockatrice"
artifact: /.*\.exe/
force_update: true
draft: false
prerelease: true
on:
APPVEYOR_REPO_TAG: true
APPVEYOR_REPO_TAG_NAME: /([0-9]|[1-9][0-9])(\.([0-9]|[1-9][0-9])){2}-beta(\.([2-9]|[1-9][0-9]))?$/ # regex to match semver naming convention for beta pre-releases
# Deploy configuration for "stable" releases
- provider: GitHub
auth_token:
secure: p+7wPVry2XEa6TBm9XH8IaQZbBmXQ/J2ldbGmcIxUZD3NkkPrSRRlmE7Of1CBBIO
artifact: /.*\.exe/
force_update: true
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true
APPVEYOR_REPO_TAG_NAME: /([0-9]|[1-9][0-9])(\.([0-9]|[1-9][0-9])){2}$/ # regex to match semver naming convention for stable full releases
# official validator for ".appveyor.yml" config file: https://ci.appveyor.com/tools/validate-yaml
# appveyor config documentation: https://www.appveyor.com/docs/build-configuration/