Skip to content

Commit

Permalink
Add release binstub
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 15, 2024
1 parent e18fe2a commit 99c42bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 99c42bd

Please sign in to comment.