-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
73 lines (62 loc) · 1.72 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
branches:
only:
- master
configuration: release
version: 0.0.0.{build}
image: Visual Studio 2017
cache:
- packages -> **\packages.config
artifacts:
- path: '**/*.msi'
name: Installers
- path: 'Android Log Viewer Portable.zip'
name: PortableApplication
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build:
verbosity: normal
project: AndroidLogViewer.sln
before_build:
- cmd: nuget restore
after_build:
- cmd: 7z a "Android Log Viewer Portable.zip" %APPVEYOR_BUILD_FOLDER%\AndroidLogViewer\bin\Release\*.exe
deploy:
- provider: GitHub
release: Android Log Viewer $(appveyor_build_version)
description: 'Android Log Viewer release for version $(appveyor_build_version)'
draft: true
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: fw8xGdlviNruXruf81HaAXKFPLfMkslVjV5gfJMxGmY3CHlpZWtFp+4w2TF0f+wT
on:
APPVEYOR_REPO_TAG: true
init:
# Set "build version number" from the tag name when applicable
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
if ($env:APPVEYOR_REPO_TAG_NAME.StartsWith("v"))
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
else
{
echo "Tag '$env:APPVEYOR_REPO_TAG_NAME' does not start with 'v'!"
}
}
else
{
echo "Not a tag!"
}