-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.age.toml
51 lines (44 loc) · 1.45 KB
/
.age.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
current_version = "0.7.0"
[[files]]
path = "Cargo.toml"
search = "version = \"{{current_version}}\""
replace = "version = \"{{new_version}}\""
[[files]]
path = "pyproject.toml"
search = "version = \"{{current_version}}\""
replace = "version = \"{{new_version}}\""
[[files]]
path = "doc/conf.py"
search = "release = \"{{current_version}}\""
replace = "release = \"{{new_version}}\""
[[files]]
path = "CHANGELOG.md"
search = "# Changelog"
replace = """
# Changelog
## v{{new_version}} - {{now|date}} (JST)
"""
[[files]]
path = "doc/usage/installation.rst"
search = """
curl -L https://github.com/attakei/age-cli/releases/download/v{{current_version}}/age-v{{current_version}}_linux.zip | bsdtar x -
chmod +x age-v{{current_version}}/age
cp age-v{{current_version}}/age /path/to/bin/
"""
replace = """
curl -L https://github.com/attakei/age-cli/releases/download/v{{new_version}}/age-v{{new_version}}_linux.zip | bsdtar x -
chmod +x age-v{{new_version}}/age
cp age-v{{new_version}}/age /path/to/bin/
"""
# This file has other replace target, but currently not supported.
[[files]]
path = ".github/release-body.md"
regex = true
search = """
- Changelog is https://github.com/attakei/age-cli/blob/v{{current_version}}/CHANGELOG.md
- Source changes is (.+)
"""
replace = """
- Changelog is https://github.com/attakei/age-cli/blob/v{{new_version}}/CHANGELOG.md
- Source changes is https://github.com/attakei/age-cli/compare/v{{current_version}}...v{{new_version}}
"""