-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (34 loc) · 1.01 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
version: "0.0.3.{build}"
platform: Any CPU
configuration: Release
init:
- cmd: echo %APPVEYOR_BUILD_VERSION%
cache:
- packages -> **\packages.config
assembly_info:
patch: true
file: '**\AssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-{branch}'
before_build:
- cmd: appveyor-retry nuget restore -verbosity detailed
build:
project: Mcs3Rob.sln
verbosity: minimal
after_build:
- ps: |
if (${env:APPVEYOR_REPO_TAG} -eq $true) {
$semver = ${env:APPVEYOR_BUILD_VERSION}
} else {
$semver = ${env:APPVEYOR_BUILD_VERSION} -ireplace '(\d+.\d+.\d+).(\d+)', "`$1-ci-`$2-${env:APPVEYOR_REPO_BRANCH}"
$semver = $semver.Substring(0, [System.Math]::Min(20, $semver.Length))
}
nuget pack Mcs3Rob\Mcs3Rob.csproj -properties "Configuration=${env:CONFIGURATION};Platform=AnyCPU" -symbols -version $semver
deploy:
- provider: Environment
name: NuGet.org
on:
appveyor_repo_tag: true
artifacts:
- path: '*.nupkg'