Make sure you have your Go environment setup, in particular that GOPATH is set. Then run:
$ go install github.com/litl/hookhub
You will need a hookhub.toml configuration file in the server's working directory. An example is provided.
You will also need to configure your Github webhooks to point at http://<host>:<port>/github_webhook, and then modify them to listen for Releases.
First, find the id for your hook:
curl -H "Authorization: token YOURTOKEN" https://api.github.com/repos/:owner/:repo/hooks
Next, PATCH in support for Release events:
curl -X PATCH -H "Authorization: token YOURTOKEN" -H "Content-Type: application/json" -d '{"add_events":["release"]}' https://api.github.com/repos/:owner/:repo/hooks/:id
HookHub is Copyright (c) 2013 litl, LLC and licensed under the MIT license. See the LICENSE file for full details.
Heavily derived from https://github.com/litl/hookyapp :-)