Skip to content

Instantly share code, notes, and snippets.

@mattbrailsford
Last active August 16, 2021 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattbrailsford/94dc2414f3d80bf6f2e516957d55f794 to your computer and use it in GitHub Desktop.
Save mattbrailsford/94dc2414f3d80bf6f2e516957d55f794 to your computer and use it in GitHub Desktop.
GitVersion config that supports explicit alpha, beta and rc releases
branches:
master:
regex: ^ma[ster|in]
release-alpha:
regex: ^releases?[/-](.*)-alpha$
mode: ContinuousDeployment
tag: alpha
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
tracks-release-branches: false
is-release-branch: true
pre-release-weight: 1000
source-branches: ['main', 'develop', 'feature', 'hotfix']
release-beta:
regex: ^releases?[/-].*-beta$
mode: ContinuousDeployment
tag: beta
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
tracks-release-branches: false
is-release-branch: true
pre-release-weight: 2000
source-branches: ['main', 'develop', 'feature', 'hotfix', 'release-alpha']
release:
regex: ^releases?[/-].*(?<!-(alpha|beta))$
mode: ContinuousDeployment
tag: rc
commit-message-incrementing: Disabled
pre-release-weight: 3000
source-branches: ['main', 'develop', 'feature', 'hotfix', 'release-alpha', 'release-beta']
feature:
mode: ContinuousDeployment
tag: alpha.{BranchName}
pull-request:
regex: ^(pull|pull\-requests|pr|patch)[/-]
mode: ContinuousDeployment
hotfix:
mode: ContinuousDeployment
support:
mode: ContinuousDeployment
tag: 'support'
increment: 'None'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment