mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
actually, commit for staging too
This commit is contained in:
parent
e020e7fe32
commit
a23216cc45
1 changed files with 2 additions and 7 deletions
|
|
@ -167,14 +167,9 @@ class HarpBlog
|
||||||
end
|
end
|
||||||
|
|
||||||
def publish(env)
|
def publish(env)
|
||||||
is_prod = env.to_s == 'production'
|
target = env.to_s == 'production' ? 'publish' : 'publish_beta'
|
||||||
target = is_prod ? 'publish' : 'publish_beta'
|
|
||||||
success, output = run("make #{target}")
|
success, output = run("make #{target}")
|
||||||
if is_prod
|
commit_root_data
|
||||||
commit_root_data
|
|
||||||
else
|
|
||||||
run("git checkout #{root_data_path}")
|
|
||||||
end
|
|
||||||
[success, output]
|
[success, output]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue