-
Notifications
You must be signed in to change notification settings - Fork 67
/
release.toml
137 lines (116 loc) · 4.41 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# cargo-release configuration
tag-message = "{{version}}"
pre-release-commit-message = "Release v{{version}}"
consolidate-commits = false
push-remote = "upstream"
# Change the changelog's `Unreleased` section to refer to this release and
# prepend a new `Unreleased` section
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = "## Unreleased\n"
replace = """
## Unreleased
No changes.
## [v{{version}}] - {{date}}
"""
# Change the tag links in the bottom of the file
#
# The <!-- cargo-release: latest tag --> marker is needed to
# reliably match on the latest tag
[[pre-release-replacements]]
exactly = 1
file = "CHANGELOG.md"
search = """
<!-- cargo-release: latest tag -->
\\[[a-z0-9\\.-]+\\]: https://github.com/stm32-rs/stm32f3xx-hal/releases/tag/[a-z0-9\\.-]+
"""
replace = """
<!-- cargo-release: latest tag -->
[v{{version}}]: https://github.com/stm32-rs/stm32f3xx-hal/releases/tag/v{{version}}
[v{{prev_version}}]: https://github.com/stm32-rs/stm32f3xx-hal/releases/tag/v{{prev_version}}
"""
# Bump the version inside the example manifest in `README.md`
[[pre-release-replacements]]
file = "README.md"
search = 'stm32f3xx-hal = \{ version = "[a-z0-9\\.-]+",'
replace = 'stm32f3xx-hal = { version = "{{version}}",'
# Point to the latest release in documentation
#
# All files have to be listed here, until
# https://github.com/sunng87/cargo-release/issues/104
# is implemented.
[[pre-release-replacements]]
min = 0
file = "src/i2c.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/timer.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/timer/interrupts.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/spi.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/spi/config.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/serial.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/serial/config.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/interrupts.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/watchdog.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/gpio.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/dma.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/can.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/adc.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/usb.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"
[[pre-release-replacements]]
min = 0
file = "src/lib.rs"
search = "https://github.com/stm32-rs/stm32f3xx-hal/blob/[a-z0-9\\.-]+/"
replace = "https://github.com/stm32-rs/stm32f3xx-hal/blob/v{{version}}/"