12 lines
315 B
Ruby
12 lines
315 B
Ruby
|
namespace :git do
|
||
|
desc 'Copy repo to releases'
|
||
|
task create_release: :'git:update' do
|
||
|
on roles(:all) do
|
||
|
with fetch(:git_environmental_variables) do
|
||
|
within repo_path do
|
||
|
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|