-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappveyor.yml
98 lines (73 loc) · 3.17 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.4-{branch}-{build}
# branches to build
#branches
# Do not build on tags (GitHub only)
# This avoids the infinite build loop as Deploy to GitHub is set to create a tag each time.
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# scripts that are called at very beginning, before repo cloning
init:
- cmd: git config --global core.autocrlf true
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
# account/project feeds for pull request builds
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
before_build:
- cmd: nuget restore "Kajabity Tools.sln"
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
publish_nuget: true # package projects with .nuspec files and push to artifacts
publish_nuget_symbols: true # generate and publish NuGet symbol packages
include_nuget_references: true # add -IncludeReferencedProjects option while packaging NuGet artifacts
# MSBuild verbosity level - one of quiet|minimal|normal|detailed
verbosity: normal
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: Kajabity Tools\bin\$(configuration)\Kajabity.Tools.dll
- path: Samples\CsvEditor\bin\$(configuration)\CsvEditor.exe
- path: Samples\HexViewer\bin\$(configuration)\HexViewer.exe
- path: Samples\JavaPropertiesEditor\bin\$(configuration)\JavaPropertiesEditor.exe
- path: Samples\TextEditor\bin\$(configuration)\TextEditor.exe
# Being more specific to avoid also identifying NUnit as an artefact.
- path: Kajabity Tools\bin\$(configuration)\*.nupkg
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Deploying to NuGet feed
- provider: NuGet
api_key:
secure: r3ybnECBTOpYHj0EtDF6FMn5V38UX6qrTrf3uRya2v/XlqEp8Qm0z3cK/1+hAQSm
skip_symbols: false
artifact: /.*\.nupkg/
on:
#appveyor_repo_tag: true # deploy on tag push only - removed or won't deploy at all.
branch: master # release from master branch only
# Deploy to GitHub Releases
- provider: GitHub
release: kajabity.tools-v$(appveyor_build_version)
description: 'Kajabity Tools Release v$(appveyor_build_version)'
auth_token:
secure: qyEhOXLpH0txl0uO1Y3k99DUnjxsF2bmZydo8h7g05/fyNs+uj/ge+Qg273TsVU1
draft: false
prerelease: false
#appveyor_repo_tag: true # deploy on tag push only