mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Make sure to clean up after running handle_update.
This commit is contained in:
parent
12aece3511
commit
1aea7cc212
1 changed files with 5 additions and 3 deletions
8
Rakefile
8
Rakefile
|
@ -163,8 +163,6 @@ task :pages do
|
||||||
|
|
||||||
sh %{staticmatic build .}
|
sh %{staticmatic build .}
|
||||||
FileUtils.mv("site", "/var/www/#{proj}-pages")
|
FileUtils.mv("site", "/var/www/#{proj}-pages")
|
||||||
sh %{git reset --hard HEAD}
|
|
||||||
sh %{git clean -xdf}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# ----- Coverage -----
|
# ----- Coverage -----
|
||||||
|
@ -256,8 +254,12 @@ task :handle_update do
|
||||||
sh %{git pull origin master}
|
sh %{git pull origin master}
|
||||||
|
|
||||||
if ENV["REF"] == "refs/heads/master"
|
if ENV["REF"] == "refs/heads/master"
|
||||||
sh %{rake release_edge &> edge-gem-output.log}
|
sh %{rake release_edge}
|
||||||
elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
|
elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
|
||||||
sh %{rake pages PROJ=#{$1}}
|
sh %{rake pages PROJ=#{$1}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sh %{git reset --hard HEAD}
|
||||||
|
sh %{git clean -xdf}
|
||||||
|
sh %{git checkout master}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue