Created
May 22, 2017 00:21
-
-
Save ctolkien/f5f8ac058bf407ad42d9d2f71bf3f3db to your computer and use it in GitHub Desktop.
Release bits for AppVeyor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($env:APPVEYOR_REPO_TAG -eq $true -and $env:APPVEYOR_REPO_TAG_NAME -match "^v\d+\.\d+\.\d+(-(?<prerelease>[\w\d]+))?$") | |
{ | |
$env:TaggedForRelease = $true | |
$env:TaggedForPreRelease = $matches.prerelease -ne $null | |
$relName = if ($env:TaggedForPreRelease) { "PreRelease" } else { "Release" } | |
Add-AppveyorMessage "Tagged For $($relName): $($env:APPVEYOR_REPO_TAG_NAME)" -details $env:APPVEYOR_REPO_COMMIT | |
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME".Substring(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment