submodule
This commit is contained in:
parent
80f8bcc7ec
commit
649b9f0cae
|
@ -50,4 +50,17 @@ namespace :deploy do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
after "deploy:symlink:release", "deploy:update_jekyll"
|
after "deploy:symlink:release", "deploy:update_jekyll"
|
||||||
|
|
0
lib/capistrano/tasks/.keep
Normal file
0
lib/capistrano/tasks/.keep
Normal file
|
@ -1,12 +0,0 @@
|
||||||
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
|
|
Loading…
Reference in a new issue