forked from equineexchange/EquineExchange.ImageHosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (56 loc) · 1.59 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
image: Visual Studio 2017
branches:
only:
- master
- production
version: '{build}'
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(BUILD_VERSION)
assembly_file_version: $(BUILD_VERSION)
assembly_informational_version: $(RELEASE_VERSION)
configuration: Release
install:
- ps: |
set -name semver -scope global -value (get-content .\semver.txt)
if (!$semver) {
Write-Error 'semver.txt was not found in parent directory'
Exit 1
}
$env:BUILD_VERSION = $semver
"Build version $env:BUILD_VERSION"
$buildNumber = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString()
if ($buildNumber.Length -lt 5) {
$buildNumber = $buildNumber.PadLeft(5, '0')
}
$env:RELEASE_VERSION = $env:BUILD_VERSION
if ($env:APPVEYOR_REPO_TAG -ne 'true') {
$env:RELEASE_VERSION += "-build" + $buildNumber
}
"Release version $env:RELEASE_VERSION"
before_build:
- ps: nuget restore
build:
parallel: true
publish_wap: true
deploy:
- provider: GitHub
tag: v$(RELEASE_VERSION)
description: 'Release notes for v$(RELEASE_VERSION)'
auth_token:
secure: jpkoLqMlufg5tbpl9vPJcvDMVDYqFGzGt7/269EuOkvrA0EgUDPBVD82tl68F4yp
artifact: /.*\.zip/
force_update: true
on:
branch: master
appveyor_repo_tag: true
- provider: WebDeploy
name: eei-images-staging
on:
branch: production
notifications:
- provider: Slack
auth_token:
secure: Iko0UQdMipH6ZQ5h+UnU47EcrYV4OTFXxAZVC/3ZyQQNNXpH2nXvHnPiuOmjShM24s8WBfu8L/eQqEvAY+JLQw==
channel: '#dev'