-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathappveyor_deploy.yml
97 lines (76 loc) · 2.34 KB
/
appveyor_deploy.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
# This configuration will be used by a manual AppVeyor build used:
# Build the tools
# Deploy to GitHub releases
# Deploy to NuGet
image: Visual Studio 2019
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
platform: Any CPU
configuration: Release
shallow_clone: true
skip_tags: true
environment:
GITHUB_AUTH_TOKEN:
secure: a+daW6wCxNjiC19/k6jLSgweptfO1hx8779M6wDFPaEA/Hg14D6jVqMBw/mO27Sq
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
init:
- ps: |
If (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
$env:IS_NOT_PR = "true"
}
before_build:
- ps: |
(Get-Content src\Aquarius.FieldDataFramework.nuspec).
Replace('0.0.0', $env:APPVEYOR_BUILD_VERSION) | Set-Content src\Aquarius.FieldDataFramework.nuspec
- nuget restore src\FieldDataFramework.sln
build:
project: src\FieldDataFramework.sln
after_build:
- nuget pack src\Aquarius.FieldDataFramework.nuspec
artifacts:
- path: src\Library
name: FieldDataPluginFramework
type: zip
- path: src\PluginPackager\bin\Release\PluginPackager.exe
name: PluginPackager
type: file
- path: src\PluginTester\bin\Release\PluginTester.exe
name: PluginTester
type: file
- path: src\JsonFieldData\deploy\Release\JsonFieldData.plugin
name: JsonPlugin
type: file
- path: src\MultiFile\deploy\Release\MultiFile.plugin
name: MultiFilePlugin
type: file
- path: src\MultiFile.Configurator\bin\Release\MultiFile.Configurator.exe
name: MultiFile.Configurator
type: file
- path: src\FieldVisitHotFolderService\bin\Release
name: FieldVisitHotFolderService
type: zip
- path: 'Aquarius.FieldDataFramework.*.nupkg'
name: AllPackages
type: NuGetPackage
deploy:
- provider: GitHub
tag: v$(APPVEYOR_BUILD_VERSION)
release: AQUARIUS Field Data Framework $(APPVEYOR_BUILD_VERSION)
description: ''
artifact: FieldDataPluginFramework,PluginPackager,PluginTester,JsonPlugin,FieldVisitHotFolderService,MultiFilePlugin,MultiFile.Configurator
auth_token: $(GITHUB_AUTH_TOKEN)
on:
is_not_pr: true
- provider: NuGet
api_key:
secure: vAD34IxSthEP1RXr3dpfTr2TM9jMRQnsuusgdS4ETrYtswt9WWAG2fKCEYAVVpVv
skip_symbols: false
artifact: AllPackages