-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
82 lines (65 loc) · 2.47 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '0.1.{build}'
clone_depth: 10
environment:
GitEmail: ci@appveyor.com
GitAuthor: ci
GitUsername: mminns
GitPassword:
secure: /GXo1m4yXO8eIbjXBMBOVkC5d05AvG0/+03CmoHZBlsoPp3mnSwDXKLA6CpKNAs3
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
skip_tags: true
skip_commits:
author: ci
configuration:
- Release
image: Visual Studio 2017
before_build:
- dotnet restore
assembly_info:
patch: true
file: SharedAssemblyInfo.cs
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-{branch}'
build_script:
- ps: |
dotnet build -c release "Itofinity.Bitbucket.Rest.sln"
dotnet pack -c release -p:PackageVersion=$env:APPVEYOR_BUILD_VERSION
after_build:
- cmd: .\utils\publish.cmd
artifacts:
- path: '**\*$(APPVEYOR_BUILD_VERSION).nupkg'
- path: '.\src\Itofinity.Bitbucket.Cli\bin\$(configuration)\netcoreapp2.1\win-x64\publish'
name: bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-win-x64
type: zip
- path: '.\src\Itofinity.Bitbucket.Cli\bin\$(configuration)\netcoreapp2.1\linux-x64\publish'
name: bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-linux-x64
type: zip
- path: '.\src\Itofinity.Bitbucket.Cli\bin\$(configuration)\netcoreapp2.1\osx-x64\publish'
name: bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-osx-x64
type: zip
cache:
- packages -> **\packages.config
matrix:
fast_finish: true
on_success:
- ps : .\appveyor-tag-repository.ps1
deploy:
- provider: GitHub
release: bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)
description: 'Bitbucket Cli Release'
auth_token:
secure: /GXo1m4yXO8eIbjXBMBOVkC5d05AvG0/+03CmoHZBlsoPp3mnSwDXKLA6CpKNAs3 # your encrypted token from GitHub
artifact: /.*\.nupkg/ , bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-win-x64, bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-linux-x64, bbc-cli-v$(APPVEYOR_BUILD_VERSION)-$(configuration)-osx-x64
draft: false
prerelease: FALSE
on:
branch: master # release from master branch only
- provider: NuGet
api_key:
secure: Fe8DovER/ifKSdkuY/3mRvX1nf+ZCtnJhw0i0C8LEdrdndFZO9sMsp3zMlK+cTql
skip_symbols: false
artifact: /.*\.nupkg/
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))