-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
57 lines (43 loc) · 1.37 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
#---------------------------------#
# general configuration #
#---------------------------------#
environment:
nuget_api_key:
secure: vCz+C1EH9zyxPh8hjpwniWFJYnMBvIHprbwd0yF9C11OKMl4rn75clk/2VUq9sCw
# version format
version: 1.0.{build}
# clone directory
clone_folder: c:\projects\VL.WinFormsUtils
branches:
only:
- master
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "1.0.{build}"
assembly_file_version: "{version}"
install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- nuget pack appveyor\VL.WinFormsUtils.nuspec -Version %APPVEYOR_BUILD_VERSION%
- nuget setApiKey %nuget_api_key%
- nuget push C:\projects\VL.WinFormsUtils\VL.WinFormsUtils.%APPVEYOR_BUILD_VERSION%.nupkg -Source https://api.nuget.org/v3/index.json
artifacts:
- path: '*.nupkg'
type: NuGetPackage
#---------------------------------#
# notifications #
#---------------------------------#
test: off
notifications:
# Email
- provider: Email
to:
- hi@domj.net
subject: 'VL.WinFormsUtils Build {{status}}' # optional
message: "{{message}}, {{commitId}}, ..." # optional
on_build_status_changed: true