forked from ClosedXML/ClosedXML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (47 loc) · 1.47 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
55
56
57
58
59
60
61
version: 0.94.0.{build}
os: Visual Studio 2017
image: Visual Studio 2017
environment:
AppVeyor: APPVEYOR
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq 'true')
{
$env:fileVersion = $env:APPVEYOR_REPO_TAG_NAME -replace '(\d+)\.(\d+)\.(\d+)(-.+)?', '$1.$2.$3'
if ($env:fileVersion -eq $env:APPVEYOR_REPO_TAG_NAME) { $env:fileVersion = $($env:fileVersion + '.0') }
else { $env:fileVersion = $($env:fileVersion + '.' + $env:APPVEYOR_BUILD_NUMBER) }
$env:productVersion = $env:APPVEYOR_REPO_TAG_NAME
}
else
{
$env:fileVersion = $env:APPVEYOR_BUILD_VERSION -replace '(\d+)\.(\d+)\.([^.]+)\.(\d+)', '$1.$2.999.$4'
$env:productVersion = $env:fileVersion
}
Update-AppveyorBuild -Version $env:fileVersion
Write-Host $env:fileVersion $env:productVersion
Write-Host $env:APPVEYOR_REPO_TAG $env:APPVEYOR_REPO_TAG_NAME
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '$(productVersion)'
package_version: '$(productVersion)'
assembly_version: '$(fileVersion)'
file_version: '$(fileVersion)'
informational_version: '$(productVersion)'
# platform: Any CPU
configuration :
- Release
- Release.Signed
before_build:
- cmd: nuget update -self
- nuget restore
build:
parallel: true
project: ClosedXML.sln
verbosity: minimal
artifacts:
- path: ClosedXML/bin/%CONFIGURATION%/*/ClosedXML.dll
- path: ClosedXML/bin/%CONFIGURATION%/*.nupkg
nuget:
project_feed: true
disable_publish_on_pr: true