forked from AquaticInformatics/aquarius-field-data-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor_deploy.yml
78 lines (62 loc) · 1.89 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
# This configuration will be used by a manual AppVeyor build used:
# Build the tools
# Deploy to GitHub releases
# Deploy to NuGet
image: Visual Studio 2017
platform: Any CPU
configuration: Release
shallow_clone: true
skip_tags: true
environment:
GITHUB_AUTH_TOKEN:
secure: e24gj/T2VZ5R4XwbNUwj+eu4FbHEqWKUhuvNKXcp4dRPxj8lgW3AbWgSitK5kzek
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "1.0.0.0"
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\FieldDataPluginTool\bin\Release\FieldDataPluginTool.exe
name: FieldDataPluginTool
type: file
- path: src\PluginPackager\bin\Release\PluginPackager.exe
name: PluginPackager
type: file
- path: src\PluginTester\bin\Release\PluginTester.exe
name: PluginTester
type: file
- 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,FieldDataPluginTool,PluginPackager,PluginTester
auth_token: $(GITHUB_AUTH_TOKEN)
on:
is_not_pr: true
- provider: NuGet
api_key:
secure: Ss/XdmdeuQizMU2CJJp4qztdKHt4DCdIA/ZgOP8DhUfHxelafWETPPxNGyd5ONQY
skip_symbols: false
artifact: AllPackages