Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
leavez committed May 7, 2018
1 parent 5c4b363 commit c0c2ddb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/release_version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# update version
version = ARGV[0]
if version == nil
puts "please input a version"
exit
end
path = "lib/cocoapods-binary/gem_version.rb"
content = <<-eos
module CocoapodsBinary
VERSION = "#{version}"
end
eos
File.write(path, content)

`git add -A; git commit -m "bump version"; git push`
`rake install`
`gem push pkg/cocoapods-binary-#{version}.gem`

0 comments on commit c0c2ddb

Please sign in to comment.