Skip to content

Commit 9f47f13

Browse files
committed
Update Appveyor
1 parent 8ee695e commit 9f47f13

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

appveyor.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#version should be only changed with RELEASE eminent, see RELEASE.md
22

3-
version: 2.7.84-beta-{build}
3+
version: 2.8.0-beta-{build}
44

55
image: Visual Studio 2019
66

77
clone_depth: 1
88
pull_requests:
9-
do_not_increment_build_number: false
9+
do_not_increment_build_number: true
1010

1111
init:
1212
- ps: |
@@ -15,23 +15,37 @@ init:
1515
if ($env:APPVEYOR_REPO_TAG -eq "true") {
1616
$ver = $env:APPVEYOR_REPO_TAG_NAME
1717
if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) }
18-
Update-AppveyorBuild -Version $ver
19-
}
20-
- ps: Write-Host "APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow
18+
$env:PACKAGE_VERSION = $ver
19+
} else {
20+
$env:PACKAGE_VERSION = $env:APPVEYOR_BUILD_VERSION
21+
}
22+
- ps: |
23+
Write-Host "PACKAGE_VERSION:$env:PACKAGE_VERSION | APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow
24+
Write-Host "APPVEYOR_REPO_TAG_NAME:$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Yellow
25+
26+
skip_commits:
27+
files:
28+
- docs/*
29+
- art/*
30+
- '**/*.md'
31+
#- .travis.yml
32+
- .gitignore
33+
- .editorconfig
34+
message: /updated readme.*|update readme.*s|update docs.*|update version.*|update changelog.*/
2135

2236
environment:
2337
matrix:
2438
- BUILD_TARGET: base
2539
- BUILD_TARGET: fsharp
2640

2741
build_script:
28-
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
42+
- cmd: dotnet build src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
2943

3044
test_script:
3145
- cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET%
3246

3347
after_test:
34-
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET%
48+
- cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %PACKAGE_VERSION% /p:BuildTarget=%BUILD_TARGET%
3549

3650
artifacts:
3751
- path: 'src/CommandLine/bin/Release/*.nupkg'
@@ -59,11 +73,3 @@ deploy:
5973
on:
6074
APPVEYOR_REPO_TAG: true
6175

62-
#myget
63-
- provider: NuGet
64-
server: https://www.myget.org/F/commandlineparser/api/v2/package
65-
api_key:
66-
secure: ltHh/DsAk+Y7qbJwzUO4+i1U+7uGTLVYXTdW0+Rk2z7jqj5DDNNlih9J8K7bU4bH
67-
artifact: 'NuGetPackages'
68-
symbol_server: https://www.myget.org/F/commandlineparser/symbols/api/v2/package
69-

0 commit comments

Comments
 (0)