15 lines
353 B
Bash
Executable File
15 lines
353 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
VERSION=$1
|
|
|
|
printf "module Kamal\n VERSION = \"$VERSION\"\nend\n" > ./lib/kamal/version.rb
|
|
bundle
|
|
git add Gemfile.lock lib/kamal/version.rb
|
|
git commit -m "Bump version for $VERSION"
|
|
git push
|
|
git tag v$VERSION
|
|
git push --tags
|
|
gem build kamal.gemspec
|
|
gem push "kamal-$VERSION.gem" --host https://rubygems.org
|
|
rm "kamal-$VERSION.gem"
|