forked from edsnider/localnotificationsplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
66 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
environment:
next_version: 3.0.0
is_pr: false
only_commits:
files:
- src/
- nuget/*.nuspec
image: Visual Studio 2017
configuration: Release
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER)
{
$env:is_pr = "false";
if ($env:APPVEYOR_REPO_BRANCH -ne "master")
{
Update-AppveyorBuild -Version "$($env:next_version)-$($env:APPVEYOR_REPO_BRANCH)-build$($env:APPVEYOR_BUILD_NUMBER)"
}
else
{
Update-AppveyorBuild -Version "$($env:next_version)-beta$($env:APPVEYOR_BUILD_NUMBER)"
}
}
else
{
$env:is_pr = "true";
Update-AppveyorBuild -Version "$($env:next_version)-pr$($env:APPVEYOR_PULL_REQUEST_NUMBER)-build$($env:APPVEYOR_BUILD_NUMBER)"
}
}
assembly_info:
patch: true
file: 'src\**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- cmd: nuget restore src/LocalNotificationsPlugin.sln
build:
project: src/LocalNotificationsPlugin.sln
verbosity: minimal
after_build:
- cmd: nuget pack nuget/Plugin.LocalNotifications.nuspec -basepath "./" -version "%APPVEYOR_BUILD_VERSION%"
artifacts:
- path: '*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: iZpf1YSkDiacJ9rKDwnS0DucuVDkzuEUhleT9T+ypZO7hhkToq+bmJCzuNyA9rkE
on:
branch: master
is_pr: false
- provider: NuGet
api_key:
secure: iZpf1YSkDiacJ9rKDwnS0DucuVDkzuEUhleT9T+ypZO7hhkToq+bmJCzuNyA9rkE
on:
appveyor_repo_tag: true