forked from FoundatioFx/Foundatio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (41 loc) · 1.39 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
version: 5.1.{build}
os: Visual Studio 2017
clone_depth: 2
configuration: Release
pull_requests:
do_not_increment_build_number: true
init:
- git config --global core.autocrlf input
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
- ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
- ps: 'Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'
before_build:
- ps: .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
- appveyor-retry dotnet restore -v Minimal
build_script:
- ps: dotnet build -c Release
#on_failure:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
after_test:
- ps: dotnet pack -c Release
artifacts:
- path: artifacts\*.nupkg
name: NuGet
deploy:
- provider: Environment
name: MyGet
- provider: Environment
name: NuGet
on:
appveyor_repo_tag: true
- provider: GitHub
auth_token:
secure: 0s81q7bweVLTFSOKxnIhan7el6bIFiN8HJ1kYJzOkeFXX7wgGSq9bs/rV53X9qpf
draft: true
on:
appveyor_repo_tag: true
notifications:
- provider: Slack
auth_token:
secure: GniMpFE62HprSyQNQoej/fBOAdbQe8EMWAMMNXX0s2JxeNePjemiO1bCf4eYweE4p70mm0sCwMjeEP/Ps9aTMA==
channel: '#notifications'