Skip to content

Commit f3a2d2d

Browse files
committed
Update CI config
1 parent 88247be commit f3a2d2d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

azure-pipelines.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
trigger:
22
- '*'
3-
- refs/tags/v*
3+
- refs/tags/v*.*
44

55
variables:
6-
versionPrefix: 0.1
6+
versionPrefix: 1.0
7+
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
8+
tagVersion: ${{ replace(variables['Build.SourceBranchName'], 'v', '') }}
79

810
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops&tabs=yaml
9-
name: $(versionPrefix).$(Rev:r)0
11+
name: ${{ coalesce(variables.tagVersion, '$(versionPrefix).$(Rev:r)') }}
1012

1113
jobs:
1214
- job: build

0 commit comments

Comments
 (0)