mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
cleanup after publishing to staging
This commit is contained in:
parent
26a3f1a0e0
commit
97f7afd9fe
1 changed files with 5 additions and 1 deletions
|
|
@ -170,7 +170,11 @@ class HarpBlog
|
||||||
is_prod = env.to_s == 'production'
|
is_prod = env.to_s == 'production'
|
||||||
target = is_prod ? 'publish' : 'publish_beta'
|
target = is_prod ? 'publish' : 'publish_beta'
|
||||||
success, output = run("make #{target}")
|
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]
|
[success, output]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue