-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.age.toml
57 lines (45 loc) · 1.2 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
52
53
54
55
56
57
current_version = "3.0.5"
[[files]]
path = "demo/index.rst"
search = ":Based version: {{current_version}}"
replace = ":Based version: {{new_version}}"
[[files]]
path = "sphinx_revealjs/__init__.py"
search = "__version__ = \"{{current_version}}\""
replace = "__version__ = \"{{new_version}}\""
[[files]]
path = "CHANGELOG.rst"
search = """
ver {{current_version}}
===={% for _ in current_version %}={% endfor %}
"""
replace = """
ver {{new_version}}
===={% for _ in new_version %}={% endfor %}
:Release date: {{ now|date }} (JST)
:Reveal.js version: 5.1.0
Breaking changes
----------------
Features
--------
Fixes
-----
Others
------
ver {{current_version}}
===={% for _ in current_version %}={% endfor %}
"""
# 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/sphinx-revealjs/blob/v{{current_version}}/CHANGELOG.rst
- Source changes is (.+)
"""
replace = """
REWRITE HERE
- Changelog is https://github.com/attakei/sphinx-revealjs/blob/v{{new_version}}/CHANGELOG.rst
- Source changes is https://github.com/attakei/sphinx-revealjs/compare/v{{current_version}}...v{{new_version}}
"""