/
tbump.toml
47 lines (38 loc) · 1.05 KB
/
tbump.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
# Uncomment this if your project is hosted on GitHub:
github_url = "https://github.com/jneug/typst-mantys/"
[version]
current = "0.1.3"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[file]]
src = "typst.toml"
search = 'version = "{current_version}"'
[[file]]
src = "README.md"
search = '\(v{current_version}\)'
[[file]]
src = "README.md"
search = "mantys:{current_version}"
[[file]]
src = "docs/mantys-manual.typ"
search = 'mantys:{current_version}'
[[file]]
src = "template/manual.typ"
search = 'mantys:{current_version}'
[[before_commit]]
name = "compile manual"
cmd = "typst compile --root . docs/mantys-manual.typ"
[[before_commit]]
name = "create thumbnail"
cmd = "typst compile --root . -f png --ppi 250 template/manual.typ docs/assets/thumbnail-{{n}}.png; mv docs/assets/thumbnail-1.png docs/assets/thumbnail.png; rm -f docs/assets/thumbnail-2.png"