mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 16:38:49 -05:00
fixed source_branch variable name in github deploy script
This commit is contained in:
parent
34e25551ea
commit
3a6974267b
2
Rakefile
2
Rakefile
@ -102,7 +102,7 @@ desc "generate and deploy website to github user pages"
|
|||||||
multitask :deploy_github => [:default, :clean_debug] do
|
multitask :deploy_github => [:default, :clean_debug] do
|
||||||
require 'git'
|
require 'git'
|
||||||
repo = Git.open('.')
|
repo = Git.open('.')
|
||||||
repo.branch("#{github_pages_branch}").checkout
|
repo.branch("#{deploy_branch}").checkout
|
||||||
(Dir["*"] - ["#{site}/*"]).each { |f| rm_rf(f) }
|
(Dir["*"] - ["#{site}/*"]).each { |f| rm_rf(f) }
|
||||||
Dir["#{site}/*"].each {|f| mv(f, ".")}
|
Dir["#{site}/*"].each {|f| mv(f, ".")}
|
||||||
rm_rf("#{site}/*")
|
rm_rf("#{site}/*")
|
||||||
|
Loading…
Reference in New Issue
Block a user