We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6326b6c commit 2cf3b75Copy full SHA for 2cf3b75
1 file changed
script/release
@@ -1,10 +1,23 @@
1
#!/usr/bin/env bash
2
+# Edit the version string in the gemspec, then execute this script to:
3
+#
4
+# 1. Commit the version change
5
+# 2. Tag the release
6
+# 3. Push the tag and the current branch to GitHub
7
+# 4. Publish the gem to RubyGems
8
9
set -e
10
11
gem build *.gemspec | awk '/Name:|Version:|File:/ { print $2 }' | xargs | {
12
read gem_name gem_version gem_file
13
trap "rm -rf $gem_file" INT EXIT
14
+
15
+ bundle install
16
+ script/test
17
18
+ git commit -m "$gem_name $gem_version" -- *.gemspec Gemfile*
19
git tag "v${gem_version}"
20
21
git push origin HEAD "v${gem_version}"
22
gem push "$gem_file"
23
}
0 commit comments