-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
64 lines (55 loc) · 1.35 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
branches:
only:
- master
shallow_clone: true
image: Visual Studio 2017
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:
verbosity: minimal
publish_nuget: true
publish_nuget_symbols: true
before_build:
- dotnet restore
test:
assemblies:
only:
- SlackWebhook.Tests.dll
environment:
WEBHOOKURL:
secure: WQ4bNAn467AcM9hTAYXxLu4WFvm+9/YoxZAR52vbTcxVYVLKH8fToxBlTyvV8ZQZu1070iCID2q7FjHBPtUGGjZNyl3APvKqIliDe+fYTSw=
deploy:
- provider: NuGet
api_key:
secure: IultkDBAyNZb+eDJcMSgWE2f+wcKeelGNI9UtI96Oqa4ThJ9e+zpVlWVwHx7WZXv
skip_symbols: true
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true
- provider: GitHub
auth_token:
secure: WTGOhyUBnlt3MpWqwOmbrFmqzhAwSPh8QDSKLPajo3xToZ4EgH1DTOacSE0SbWwp
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