From 4461dcc083b653b02d44dd3944a363ceae3aa596 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Fri, 22 Mar 2024 04:24:58 +0900 Subject: [PATCH] doc: Add aging target --- .age.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.age.toml b/.age.toml index a17800b..740d11e 100644 --- a/.age.toml +++ b/.age.toml @@ -23,3 +23,16 @@ replace = """ ## 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/ +"""