mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
13 lines
306 B
Ruby
13 lines
306 B
Ruby
require 'rubygems'
|
|
require 'sinatra'
|
|
require 'json'
|
|
set :port, 3123
|
|
set :environment, :production
|
|
Dir.chdir(File.dirname(__FILE__) + "/..")
|
|
|
|
post "/" do
|
|
payload = JSON.parse(params["payload"])
|
|
|
|
break unless payload["ref"] == "refs/heads/master"
|
|
system("rake release_edge &> edge-gem-output.log")
|
|
end
|