Skip to content

Commit

Permalink
use tag name as version if present
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Feb 25, 2020
1 parent a06f846 commit a2cd207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0">

<PropertyGroup>
<Version Condition=" '$(Version)' == '' ">0.37.0$(VersionSuffix)</Version>
<Version Condition=" '$(Version)' == '' ">0.38.0$(VersionSuffix)</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ before_build:
$versionSuffixPR = "-PR$($env:APPVEYOR_PULL_REQUEST_NUMBER)-$buildId";
$branchName = "$env:APPVEYOR_REPO_BRANCH".Replace("_","");
$versionSuffixBRANCH = "-$branchName-$buildId";
$env:Version = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "$env:APPVEYOR_REPO_TAG_NAME".trimstart("v") } else { "" }
$env:VersionSuffix = if ("$env:APPVEYOR_REPO_TAG" -eq "true") { "" } else { if ("$env:APPVEYOR_PULL_REQUEST_NUMBER") { $versionSuffixPR } else { $versionSuffixBRANCH } };
build_script:
Expand Down

0 comments on commit a2cd207

Please sign in to comment.