-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathappveyor.yml
61 lines (53 loc) · 1.25 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
branches:
only:
- master
shallow_clone: true
image: Visual Studio 2019
version: 0.0.{build}
configuration: Release
init:
# Update version based on tag or commit hash
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME.TrimStart("v"))"
}
else
{
Update-AppveyorBuild -Version "0.0.1-dev-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
build:
project: RtMidi.Core.sln
verbosity: minimal
publish_nuget: true
publish_nuget_symbols: true
before_build:
- dotnet restore
test:
assemblies:
only:
- RtMidi.Core.Tests.dll
deploy:
- provider: NuGet
api_key:
secure: bFiZADe3K4JTJ7sV14aHdddFOjMRshDJ/dNZfqmV65ePPDLQl1XOZN1nzsKJmM7e
skip_symbols: true
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true
- provider: GitHub
auth_token:
secure: JlS9lzaU37F/w2AHRctvvHjCc4fQHxplh1kc88R0Bhnwlo4gflswnmzQouKxaENg
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'See [Changelog](CHANGELOG.md) for changes'
draft: false
prerelease: false
force_update: true
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true