Skip to content

Commit 5b6635b

Browse files
committed
Use post-release versioning and fixed deploy condition
1 parent 45973f3 commit 5b6635b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

appveyor.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@ image: Visual Studio 2017
22
configuration: Release
33
version: '{build}'
44

5+
install:
6+
- ps: >-
7+
if ($env:APPVEYOR_REPO_TAG -eq "false")
8+
{
9+
$env:COMMIT_DESCRIPTION = git describe --tags
10+
}
11+
else
12+
{
13+
$env:COMMIT_DESCRIPTION = $env:APPVEYOR_REPO_TAG_NAME
14+
}
15+
Write-Host Build version is $env:COMMIT_DESCRIPTION
16+
517
dotnet_csproj:
618
patch: true
719
file: 'Medium\Medium.csproj'
8-
version: $(appveyor_repo_tag_name)
20+
version: $(commit_description)
921

1022
before_build:
1123
- cmd: dotnet restore
@@ -25,4 +37,4 @@ deploy:
2537
api_key:
2638
secure: y7n963kT1eor3dpj742k0mwnMPXsWGnljEGlfUr2zaGgqtMOJ4OegiWmLctuGYlY
2739
on:
28-
appveyor_repo_tag: master
40+
appveyor_repo_tag: true

0 commit comments

Comments
 (0)