Skip to content

Commit

Permalink
Update CI for release (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored May 17, 2022
1 parent c57f0cb commit 5c3a344
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trigger:
- 'main'
tags:
include:
- 'v1.*'
- 'v2.*'

pr:
branches:
Expand Down Expand Up @@ -111,7 +111,7 @@ stages:
dependsOn: [ 'Build', 'Analysis' ]
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
variables:
isRelease: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v1.'))
isRelease: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v2.'))
jobs:
- template: jobs/release.yaml
parameters:
Expand All @@ -123,7 +123,7 @@ stages:
- stage: Stable
displayName: Stable
dependsOn: Canary
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v1.'))
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v2.'))
jobs:
- template: jobs/release.yaml
parameters:
Expand Down
2 changes: 1 addition & 1 deletion pipeline.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if ($Env:SYSTEM_DEBUG -eq 'true') {
$VerbosePreference = 'Continue';
}

if ($Env:BUILD_SOURCEBRANCH -like '*/tags/*' -and $Env:BUILD_SOURCEBRANCHNAME -like 'v1.*') {
if ($Env:BUILD_SOURCEBRANCH -like '*/tags/*' -and $Env:BUILD_SOURCEBRANCHNAME -like 'v2.*') {
$Build = $Env:BUILD_SOURCEBRANCHNAME.Substring(1);
}

Expand Down

0 comments on commit 5c3a344

Please sign in to comment.