-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
51 lines (41 loc) · 1.37 KB
/
appveyor.yml
File metadata and controls
51 lines (41 loc) · 1.37 KB
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
version: 0.5.{build}
pull_requests:
do_not_increment_build_number: false
skip_tags: true
image: Visual Studio 2019
init:
- ps: $env:customnugetversion = if ($env:APPVEYOR_REPO_TAG -eq $True) { ("$env:APPVEYOR_REPO_TAG_NAME").TrimStart("v") } else { if ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne "" -and $env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) { "$env:APPVEYOR_BUILD_VERSION-$env:APPVEYOR_REPO_BRANCH-pr$env:APPVEYOR_PULL_REQUEST_NUMBER" } else {"$env:APPVEYOR_BUILD_VERSION-$env:APPVEYOR_REPO_BRANCH" }}
- ps: Update-AppveyorBuild -Version $env:customnugetversion
before_build:
- ps: dotnet restore
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build:
project: EaseLib.sln
verbosity: minimal
artifacts:
- path: Artifacts/NuGet/*nupkg
name: nugets
skip_commits:
files:
- '**\*.md'
nuget:
disable_publish_on_pr: true
account_feed: false
project_feed: true
deploy:
- provider: NuGet
api_key:
secure: j/i7K4TBOarCsC9rrzZSfTt8ww/51HtYutI0w2mnAcELOuqpQvkLRIDCoaPYYm++
on:
branch: master
appveyor_repo_tag: true
skip_symbols: false
symbol_server: https://api.nuget.org/v3/index.json
#- provider: GitHub
# auth_token:
# secure:
# artifacts: nugets
# tag: v$(appveyor_build_version)
# on:
# branch: master
# appveyor_repo_tag: true