Skip to content

Commit

Permalink
Re-adding important-looking stuff to release.sh; part of #196.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Degutis committed Jul 10, 2014
1 parent 7d6149e commit f1251a5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
require 'json'
require 'io/console'

# ensure private key is given
if ARGV.length < 2
echo "Usage: release.sh <priv_key_file>"
exit 1
end
privkeyfile = ARGV[1]

# get password
print "github password: "
pass = STDIN.noecho(&:gets).chomp

Expand All @@ -21,6 +29,9 @@
end
puts "Created #{filename}"

# sign zip
signature = `openssl dgst -sha1 -binary < #{filename} | openssl dgst -dss1 -sign #{privkeyfile} | openssl`

# template
template = <<END
#### Additions
Expand All @@ -31,9 +42,12 @@
#### Thanks!
You rock.
- You rock.
Signature: #{signature}
END


# create release
create_release_json = {
tag_name: version,
Expand Down

0 comments on commit f1251a5

Please sign in to comment.