cleanup after publishing to staging

This commit is contained in:
Sami Samhuri 2015-05-15 19:06:21 -07:00
parent 26a3f1a0e0
commit 97f7afd9fe

View file

@ -170,7 +170,11 @@ class HarpBlog
is_prod = env.to_s == 'production'
target = is_prod ? 'publish' : 'publish_beta'
success, output = run("make #{target}")
commit_root_data if is_prod
if is_prod
commit_root_data
else
run("git checkout #{root_data_path}")
end
[success, output]
end