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 .}
|
||||
FileUtils.mv("site", "/var/www/#{proj}-pages")
|
||||
sh %{git reset --hard HEAD}
|
||||
sh %{git clean -xdf}
|
||||
end
|
||||
|
||||
# ----- Coverage -----
|
||||
|
@ -256,8 +254,12 @@ task :handle_update do
|
|||
sh %{git pull origin 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$}
|
||||
sh %{rake pages PROJ=#{$1}}
|
||||
end
|
||||
|
||||
sh %{git reset --hard HEAD}
|
||||
sh %{git clean -xdf}
|
||||
sh %{git checkout master}
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue