-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
79 lines (70 loc) · 2.66 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
# Reference: http://www.appveyor.com/docs/appveyor-yml
# Notes:
# - Indent each level of configuration with 2 spaces. Do not use tabs!
#---------------------------------#
# general configuration #
#---------------------------------#
version: $(smallversion).{build}
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
#Do not build if we change any of this files
skip_commits:
files:
- '**/*.md'
- '**/*.editorconfig'
image: Visual Studio 2017
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
smallversion: 1.2
cache:
- packages -> **\packages.config
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-$(configuration)'
#---------------------------------#
# build configuration #
#---------------------------------#
configuration:
- Debug
- Release
platform: Any CPU
before_build:
- nuget restore
build:
parallel: true
verbosity: minimal
after_build:
#ClientUpdater post build commands
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPClientUpdater"
- ps: xcopy /s/y "$env:appveyor_build_folder\ClientUpdater\bin\$env:configuration\*.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPClientUpdater"
#ServerUpdater post build commands
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPServerUpdater"
- ps: xcopy /s/y "$env:appveyor_build_folder\ServerUpdater\bin\$env:configuration\*.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPServerUpdater"
#7zip everything
- ps: 7z a "$env:appveyor_build_folder\LunaMultiplayerUpdater-$env:configuration.zip" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPClientUpdater" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LMPServerUpdater"
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\LunaMultiplayerUpdater-$(configuration).zip
name: LunaMultiplayerUpdater-$(configuration).zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: GitHub
tag: $(smallversion)-Draft
release: LMP Updater $(smallversion)-Draft
description: 'Build $(appveyor_build_version)'
artifact: LunaMultiplayerUpdater-$(configuration).zip
auth_token:
secure: zWJqDvz3LjR2J358JIJKICwghW/DWRzs73KWb3KApTLOreA4c8DN1tos+O3qBMR7
draft: true
force_update: true
on:
branch: master