Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
#313 pages in root
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 4, 2018
1 parent 9a0f32a commit 912dcc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ release:
rake site[${tag}] validate_site[${tag}]
cp -r target/site /tmp
git checkout gh-pages
git rm -f '*'
for d in $(ls /tmp/site); do rm -rf $d; cp -r /tmp/site/$d .; git add $d; done
git commit --allow-empty -m "${tag}"
commanders:
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,14 @@ task :site, [:version] do |_, args|
FileUtils.cp_r('xsd', "target/site/#{args[:version]}")
puts "XSDs copied to target/site/#{args[:version]}"
FileUtils.mkdir_p('target/site/latest')
%w[auto rules xsd xsl upgrades pages].each do |p|
%w[auto rules xsd xsl upgrades].each do |p|
FileUtils.cp_r(p, 'target/site/latest')
puts "#{p} copied to target/site/latest"
end
%w[pages].each do |p|
FileUtils.cp_r(p, 'target/site')
puts "#{p} copied to target/site"
end
Dir['target/site/**/*'].select { |f| File.file?(f) }.each do |f|
File.write(f, File.read(f).gsub(/SNAPSHOT/, args[:version]))
end
Expand Down

0 comments on commit 912dcc8

Please sign in to comment.