Skip to content

Commit

Permalink
Prepare for release on zef ecosystem
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 7, 2022
1 parent 25fd416 commit 2e75596
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions META6.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"perl" : "6.*",
"perl" : "6.d",
"name" : "Test::Mock",
"auth" : "zef:jnthn",
"authors" : [ "Jonathan Worthington <[email protected]>" ],
"version" : "1.5",
"version" : "1.6",
"description" : "Creation of stub objects using the Arrange, Act, Assert pattern.",
"license" : "Artistic-2.0",
"depends" : [ "OO::Monitors" ],
Expand Down
12 changes: 12 additions & 0 deletions release.raku
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 2e75596

Please sign in to comment.