-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
44 lines (42 loc) · 1.06 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: Build {build}
branches:
only:
- master
- dev
skip_branch_with_pr: true
image: Visual Studio 2017
environment:
PUBLISH_CLIENTSECRET:
secure: u2MqrnmS+4jSw1IQjBViTCmrVJ5OUo8bvswGz3HcF4L+qX2ZPYNrPRSKfOpWMUvr
build_script:
- ps: >-
.\Build\BuildConfig.ps1
.\Build\AppVeyorBuild.ps1
artifacts:
- path: '.\AppxPackages'
name: AppxPackages
deploy_script:
- ps: >-
if ($env:APPVEYOR_REPO_BRANCH -eq "master")
{
if (-not [String]::IsNullOrEmpty($env:PUBLISH_CLIENTSECRET))
{
try
{
.\Publish\InstallStoreBroker.ps1
.\Publish\PublishConfig.ps1
.\Publish\PublishToStore.ps1
Add-AppveyorMessage "Published to Store"
}
catch
{
Add-AppveyorMessage "Publishing to Store failed. " -Category Error
exit 1
}
}
else
{
Add-AppveyorMessage "Environment variable clientSecret is not set. " -Category Error
exit 1
}
}