forked from kallemooo/Asap2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
34 lines (26 loc) · 872 Bytes
/
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
version: "1.0.0.{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: Asap2.sln
verbosity: minimal
after_build:
- ps: |
$suffix = Get-Date -format "yyyyMMddhhss"
$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 Asap2\Asap2.csproj -properties "Configuration=${env:CONFIGURATION};Platform=AnyCPU" -symbols -version $semver
artifacts:
- path: '*.nupkg'