From 2e7559653c6d7d45f518460d8ea06e2def019392 Mon Sep 17 00:00:00 2001 From: Jonathan Worthington Date: Fri, 7 Oct 2022 15:18:36 +0200 Subject: [PATCH] Prepare for release on zef ecosystem --- META6.json | 5 +++-- release.raku | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 release.raku diff --git a/META6.json b/META6.json index 6ff5885..7e20735 100644 --- a/META6.json +++ b/META6.json @@ -1,8 +1,9 @@ { - "perl" : "6.*", + "perl" : "6.d", "name" : "Test::Mock", + "auth" : "zef:jnthn", "authors" : [ "Jonathan Worthington " ], - "version" : "1.5", + "version" : "1.6", "description" : "Creation of stub objects using the Arrange, Act, Assert pattern.", "license" : "Artistic-2.0", "depends" : [ "OO::Monitors" ], diff --git a/release.raku b/release.raku new file mode 100644 index 0000000..5ca10aa --- /dev/null +++ b/release.raku @@ -0,0 +1,12 @@ +use JSON::Fast; + +sub MAIN() { + given from-json(slurp('META6.json')) -> (:$version!, *%) { + shell("fez upload"); + tag("release-$version"); + } +} + +sub tag($tag) { + shell "git tag -a -m '$tag' $tag && git push --tags origin" +}