Do not copy _site dir to gh-pages dir on release.
This commit is contained in:
		
							parent
							
								
									708ae28d8a
								
							
						
					
					
						commit
						6c02483255
					
				
							
								
								
									
										5
									
								
								Rakefile
								
								
								
								
							
							
						
						
									
										5
									
								
								Rakefile
								
								
								
								
							|  | @ -144,7 +144,10 @@ task :site_release do | ||||||
| 
 | 
 | ||||||
|   # Copy the rest of the site over. |   # Copy the rest of the site over. | ||||||
|   puts "Copying static..." |   puts "Copying static..." | ||||||
|   sh "cp -R site/* gh-pages/" |   Dir.glob("site/*") do |path| | ||||||
|  |     next if path == "_site" | ||||||
|  |     sh "cp -R #{path} gh-pages/" | ||||||
|  |   end | ||||||
| 
 | 
 | ||||||
|   # Commit the changes |   # Commit the changes | ||||||
|   sha = `git log`.match(/[a-z0-9]{40}/)[0] |   sha = `git log`.match(/[a-z0-9]{40}/)[0] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue