-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathappveyor.yml
More file actions
26 lines (26 loc) · 833 Bytes
/
appveyor.yml
File metadata and controls
26 lines (26 loc) · 833 Bytes
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
image: Visual Studio 2019
init:
- git config --global core.autocrlf input
before_build:
- ps: >-
$buildId = $env:APPVEYOR_BUILD_NUMBER.PadLeft(5, '0');
$versionSuffixPR = "-PR$($env:APPVEYOR_PULL_REQUEST_NUMBER)-$buildId";
$branchName = "$env:APPVEYOR_REPO_BRANCH".Replace("_","");
$versionSuffixBRANCH = "-$branchName-$buildId";
$env:VersionSuffix = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "" } else { if ("$env:APPVEYOR_PULL_REQUEST_NUMBER") { $versionSuffixPR } else { $versionSuffixBRANCH } };
install:
- cmd: choco install dotnetcore-sdk -y
build_script:
- cmd: echo vs %VersionSuffix%"
- cmd: build.cmd All
- cmd: dotnet pack -c Release
test: off
version: 0.0.1.{build}
artifacts:
- path: bin
name: bin
- path: 'src\**\*.nupkg'
name: nupkgs
branches:
only:
- master