Skip to content

Commit c0c2ddb

Browse files
committed
add release script
1 parent 5c4b363 commit c0c2ddb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/release_version.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# update version
2+
version = ARGV[0]
3+
if version == nil
4+
puts "please input a version"
5+
exit
6+
end
7+
path = "lib/cocoapods-binary/gem_version.rb"
8+
content = <<-eos
9+
module CocoapodsBinary
10+
VERSION = "#{version}"
11+
end
12+
eos
13+
File.write(path, content)
14+
15+
`git add -A; git commit -m "bump version"; git push`
16+
`rake install`
17+
`gem push pkg/cocoapods-binary-#{version}.gem`

0 commit comments

Comments
 (0)