Skip to content

Commit

Permalink
build: Update gitversion.yml
Browse files Browse the repository at this point in the history
Update gitversion.yml, adapted from the Uno Platform project.
  • Loading branch information
trungnt2910 committed Jul 21, 2023
1 parent 3eb9995 commit 7bcfc64
Showing 1 changed file with 35 additions and 21 deletions.
56 changes: 35 additions & 21 deletions gitversion.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,65 @@
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDeployment
mode: Mainline

branches:
master:
mode: ContinuousDeployment
regex: master
tag: dev
increment: Minor
is-source-branch-for: ['beta', 'stable']

legacy:
mode: ContinuousDeployment
regex: legacy/.*
tag: dev
increment: Minor
source-branches: ['master']
is-source-branch-for: ['beta', 'stable']

pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
mode: ContinuousDeployment
tag: PullRequest
increment: Inherit
tag: 'PullRequest'
tag-number-pattern: '[/-](?<number>\d+)[-/]'
increment: Minor # use minor to avoid expensive commit search

beta:
mode: ContinuousDeployment
regex: ^release/beta/.*
tag: beta
increment: none
source-branches: ['master','legacy']

stable:
regex: release/stable/.*
regex: ^release/stable/.*
tag: ''
increment: Patch
source-branches: ['master']
source-branches: ['master','beta','legacy']
is-mainline: true

beta:
mode: ContinuousDeployment
regex: release/beta/.*
tag: 'beta'
increment: inherit
source-branches: ['master']

dev:
mode: ContinuousDeployment
regex: dev/.*?/(.*?)
regex: ^dev/.*?/(.*?)
tag: dev.{BranchName}
source-branches: ['master', 'release', 'projects', 'feature']
increment: inherit
source-branches: ['master', 'legacy', 'stable', 'projects', 'feature']
increment: none

projects:
tag: proj-{BranchName}
regex: projects/(.*?)
source-branches: ['master']
increment: inherit
regex: ^projects/(.*?)
source-branches: ['master','legacy']
increment: none

feature:
tag: feature.{BranchName}
regex: feature/(.*?)
source-branches: ['master']
increment: inherit
regex: ^feature/(.*?)
source-branches: ['master','legacy']
increment: none

release:
# disable default release branch
regex: ignore

ignore:
sha: []

0 comments on commit 7bcfc64

Please sign in to comment.