mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-18 12:45:52 +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
|
||||
|
||||
def publish(env)
|
||||
is_prod = env.to_s == 'production'
|
||||
target = is_prod ? 'publish' : 'publish_beta'
|
||||
target = env.to_s == 'production' ? 'publish' : 'publish_beta'
|
||||
success, output = run("make #{target}")
|
||||
if is_prod
|
||||
commit_root_data
|
||||
else
|
||||
run("git checkout #{root_data_path}")
|
||||
end
|
||||
commit_root_data
|
||||
[success, output]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue