-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (41 loc) · 1.38 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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
init:
- cmd: echo %APPVEYOR_REPO_BRANCH%
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (set PROJECT_VERSION=%APPVEYOR_REPO_TAG_NAME%) ELSE (IF "%APPVEYOR_REPO_BRANCH%"=="master" (set PROJECT_VERSION=%APPVEYOR_BUILD_VERSION%) ELSE (IF "%APPVEYOR_REPO_BRANCH%"=="development" (set PROJECT_VERSION=%APPVEYOR_BUILD_VERSION%-dev) ELSE (set PROJECT_VERSION=%APPVEYOR_BUILD_VERSION%-pr)))
- cmd: echo %PROJECT_VERSION%
- cmd: echo %APPVEYOR_BUILD_NUMBER%
- cmd: echo %APPVEYOR_BUILD_VERSION%
- cmd: echo %APPVEYOR_REPO_TAG_NAME%
install:
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
image: Visual Studio 2019
configuration: Release
platform: Any CPU
nuget:
disable_publish_on_pr: true
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(PROJECT_VERSION)
package_version: $(PROJECT_VERSION)
assembly_version: $(PROJECT_VERSION)
file_version: $(PROJECT_VERSION)
informational_version: $(PROJECT_VERSION)
before_build:
- cmd: dotnet restore src/ListenNotesSearch.NET.sln
build:
verbosity: minimal
after_build:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: ls
artifacts:
- path: ListenNotesSearch.NET/bin
name: build
deploy:
- provider: NuGet
api_key:
secure: QszWgain24f3hNHfeUTlnCJDVi/njNTVUcdGJTQST0a0OFn6aC6YW1Np6cqzoTNY
on:
APPVEYOR_REPO_TAG: true