Skip to content

Commit 99c42bd

Browse files
committed
Add release binstub
1 parent e18fe2a commit 99c42bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bin/release

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
VERSION=$1
4+
5+
printf "class Jbuilder\n VERSION = \"$VERSION\"\nend\n" > ./lib/jbuilder/version.rb
6+
bundle
7+
git add Gemfile.lock lib/jbuilder/version.rb
8+
git commit -m "Bump version for $VERSION"
9+
git push
10+
git tag v$VERSION
11+
git push --tags
12+
gem build jbuilder.gemspec
13+
gem push "jbuilder-$VERSION.gem" --host https://rubygems.org
14+
rm "jbuilder-$VERSION.gem"

0 commit comments

Comments
 (0)