Skip to content

Commit 21f04ee

Browse files
committed
Added usage section to continuous-deployment.
1 parent 8293ccf commit 21f04ee

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/reference/continuous-deployment.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@ applications but can cause problems for libraries. As such this mode may or may
1313
not work for you, which leads us into a new mode in v4 of GitVersion:
1414
[Mainline Development](mainline-development.md).
1515

16-
By default GitVersion is *not* setup to do Continuous Deployment versioning.
17-
The good news is in v3 of GitVersion this behavior is
18-
[configurable](../configuration.md)!
16+
### Usage
17+
By default GitVersion is set up to do Continuous Deployment versioning on the
18+
`develop` branch, but for all other branches,
19+
[Continuous Delivery](continuous-delivery.md) is the default mode. From version
20+
3 of GitVersion this behavior is [configurable](../configuration.md).
1921

2022
The default behavior for v3 and how v1 & 2 worked was that the version only
2123
incremented after a tag, which signified a release. In v3 you can simply switch
2224
the default mode in the [configuration](../configuration.md) from
23-
`continuous-delivery` to `continuous-deployment` and the version will then
25+
`ContinuousDelivery` to `ContinuousDeployment` and the version will then
2426
increment each commit, giving you the features of GitVersion with continuous
25-
deployment.
27+
deployment:
28+
29+
```yaml
30+
mode: ContinuousDeployment
31+
```
2632
2733
[blog]: http://www.xavierdecoster.com/semantic-versioning-auto-incremented-nuget-package-versions

0 commit comments

Comments
 (0)