Skip to content

Commit

Permalink
Add a Rubygems release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lewispb committed May 9, 2024
1 parent 2163bc7 commit 8384ec1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 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 "module MissionControl::Web\n VERSION = \"$VERSION\"\nend\n" > ./lib/mission_control/web/version.rb
bundle
git add Gemfile.lock lib/mission_control/web/version.rb
git commit -m "Bump version for $VERSION"
git push
git tag v$VERSION
git push --tags
gem build mission_control-web.gemspec
gem push "mission_control-web-$VERSION.gem" --host https://rubygems.org
rm "mission_control-web-$VERSION.gem"
6 changes: 2 additions & 4 deletions lib/mission_control/web/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module MissionControl
module Web
VERSION = "0.1.0"
end
module MissionControl::Web
VERSION = "0.1.0"
end

0 comments on commit 8384ec1

Please sign in to comment.