Skip to content

Commit 45a0b3a

Browse files
committed
Release script
1 parent cef9b3a commit 45a0b3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bin/release

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
VERSION=$1
4+
5+
printf "module HomographicSpoofing\n VERSION = \"$VERSION\"\nend\n" > ./lib/homographic_spoofing/version.rb
6+
bundle
7+
git add Gemfile.lock lib/homographic_spoofing/version.rb
8+
git commit -m "Bump version for $VERSION"
9+
git push
10+
git tag v$VERSION
11+
git push --tags
12+
gem build homographic_spoofing
13+
gem push "homographic_spoofing-$VERSION.gem" --host https://rubygems.org
14+
rm "homographic_spoofing-$VERSION.gem"

0 commit comments

Comments
 (0)