From 99c42bdd3dc8bcc0d4e685418478019481c95a4e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 15 Sep 2024 07:29:48 -0700 Subject: [PATCH] Add release binstub --- bin/release | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/release diff --git a/bin/release b/bin/release new file mode 100755 index 0000000..eec14c9 --- /dev/null +++ b/bin/release @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +VERSION=$1 + +printf "class Jbuilder\n VERSION = \"$VERSION\"\nend\n" > ./lib/jbuilder/version.rb +bundle +git add Gemfile.lock lib/jbuilder/version.rb +git commit -m "Bump version for $VERSION" +git push +git tag v$VERSION +git push --tags +gem build jbuilder.gemspec +gem push "jbuilder-$VERSION.gem" --host https://rubygems.org +rm "jbuilder-$VERSION.gem"