From 625a186d1e9edde810e82b43c2cc4a3dd24d62fb Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Sat, 23 Mar 2024 19:27:19 +0900 Subject: [PATCH] chore: Manage target for versioning --- .age.toml | 21 +++++++++++++++++++++ .github/release-body.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .age.toml diff --git a/.age.toml b/.age.toml new file mode 100644 index 0000000..c59992a --- /dev/null +++ b/.age.toml @@ -0,0 +1,21 @@ +current_version = "0.0.0" + +[[files]] +path = "pyproject.toml" +search = "version = \"{{current_version}}\"" +replace = "version = \"{{new_version}}\"" + +[[files]] +path = "src/atsphinx/mini18n.py" +search = "__version__ = \"{{current_version}}\"" +replace = "__version__ = \"{{new_version}}\"" + +[[files]] +path = "src/atsphinx/mini18n.py" +search = "__version__ = \"{{current_version}}\"" +replace = "__version__ = \"{{new_version}}\"" + +[[files]] +path = ".github/release-body.md" +search = "- Changelog is https://github.com/atsphinx/mini18n/blob/v{{ current_version }}/CHANGES.rst" +replace = "- Changelog is https://github.com/atsphinx/mini18n/blob/v{{ new_version }}/CHANGES.rst" diff --git a/.github/release-body.md b/.github/release-body.md index 4216a62..839c19e 100644 --- a/.github/release-body.md +++ b/.github/release-body.md @@ -1,3 +1,3 @@ -Release atsphinx-mini18n v0.0.0 +Release update - Changelog is https://github.com/atsphinx/mini18n/blob/v0.0.0/CHANGES.rst