Refine deploy workflow

few reasons: this is a common pattern in Ruby, it avoids creating new variable, inject is a standard iterator.