forked from xamarin/Xamarin.Auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (60 loc) · 1.73 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
environment:
next_version: 1.0.0
is_pr: false
image: Visual Studio 2019
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: 'source\**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- cmd: nuget restore source/Xamarin.Auth-Library.sln
build:
project: source/Xamarin.Auth-Library.sln
verbosity: minimal
after_build:
- cmd: nuget pack nuget/Xamarin.Auth.nuspec -basepath "./" -version "%APPVEYOR_BUILD_VERSION%"
artifacts:
- path: '*.nupkg'
deploy:
- provider: NuGet
server: http://packages.smokeball.com/nuget/smokeball/
api_key:
secure: 4daht3RAVeO4D1y8kdMWmsaHx/kCMaBcrdNkmQeQWKk=
on:
branch: master
is_pr: false
- provider: NuGet
server: http://packages.smokeball.com/nuget/smokeball/
api_key:
secure: 4daht3RAVeO4D1y8kdMWmsaHx/kCMaBcrdNkmQeQWKk=
on:
appveyor_repo_tag: true