-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
release.toml
52 lines (44 loc) · 1.1 KB
/
release.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sign-commit = true
sign-tag = true
pre-release-commit-message = "Bump up version number to {{version}}"
tag-message = "Version {{version}}"
[[pre-release-replacements]]
file = "README.md"
search = 'obws = "[a-z0-9\.-]+"'
replace = 'obws = "{{version}}"'
prerelease = true
[[pre-release-replacements]]
file = "README.md"
search = '`cargo add obws@[a-z0-9\.-]+`'
replace = '`cargo add obws@{{version}}`'
prerelease = true
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = 'Unreleased'
replace = '{{version}}'
exactly = 2
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '\.\.\.HEAD'
replace = '...{{tag_name}}'
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = 'ReleaseDate'
replace = '{{date}}'
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '<!-- next-header -->'
replace = '''
<!-- next-header -->
## [Unreleased] - ReleaseDate
'''
exactly = 1
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = '<!-- next-url -->'
replace = '''
<!-- next-url -->
[Unreleased]: https://github.com/dnaka91/obws/compare/{{tag_name}}...HEAD'''
exactly = 1