-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
37 lines (37 loc) · 1.23 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
image: Visual Studio 2017
environment:
major: 1
minor: 2
patch: 0
configuration: Release
init:
- ps: |
$isCI = $Env:APPVEYOR_REPO_TAG -eq $false
$isBranch = $isCI -and ($Env:APPVEYOR_REPO_BRANCH -ne 'master')
$branchSuffix = "$(if ($isBranch) { '-' + $Env:APPVEYOR_REPO_BRANCH } else { $null })"
$buildPlanVersion = "$($Env:major).$($Env:minor).$($Env:patch)"
$Env:VersionPrefix = "$(if ($isCI) { $buildPlanVersion } else { $Env:APPVEYOR_REPO_TAG_NAME })"
$Env:VersionSuffix = "$(if ($isCI) { $branchSuffix + $Env:APPVEYOR_BUILD_NUMBER } else { $null })"
appveyor UpdateBuild -Version "$($Env:VersionPrefix)$(if ($isCI) { '-' } else { $null })$($Env:VersionSuffix)"
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(VersionPrefix).0
assembly_file_version: $(VersionPrefix).$(APPVEYOR_BUILD_NUMBER)
assembly_informational_version: $(VersionPrefix)
nuget:
project_feed: true
before_build:
- dotnet restore src
build:
project: src/ClaymoreMiner.RemoteManagement.sln
verbosity: minimal
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: KYazkCEi9oMn1AALPvX9WRLKoBfGmk7WNsAxs+sfmOov/pSQcS/48m0Dl8aV3hX8
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: true