forked from edsnider/localnotificationsplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
67 lines (61 loc) · 1.86 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
environment:
next_version: 7.0.0
is_pr: false
image: Visual Studio 2022
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)"
}
}
install:
- '"C:\Program Files (x86)\Android\android-sdk\tools\bin\sdkmanager.bat" platforms;android-31'
dotnet_csproj:
patch: true
file: '**\*.csproj'
package_version: '{version}'
assembly_version: "$(next_version).$(APPVEYOR_BUILD_NUMBER)"
file_version: "$(next_version).$(APPVEYOR_BUILD_NUMBER)"
informational_version: "$(next_version).$(APPVEYOR_BUILD_NUMBER)"
before_build:
- cmd: dotnet restore src/LocalNotificationsPlugin.sln
build:
project: src/LocalNotificationsPlugin.sln
verbosity: minimal
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
server: https://baget.smokeball.com/v3/index.json
api_key:
secure: yqIg62cjhOGBn3xdL0E5owkscKGIzP5+UXsL9KaXsxaxwpGZbCN/9I2oRnoip0PF
on:
branch: master
is_pr: false
- provider: NuGet
server: https://baget.smokeball.com/v3/index.json
api_key:
secure: yqIg62cjhOGBn3xdL0E5owkscKGIzP5+UXsL9KaXsxaxwpGZbCN/9I2oRnoip0PF
on:
appveyor_repo_tag: true