mirror of https://github.com/sunface/rust-course
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					21 lines
				
				508 B
			
		
		
			
		
	
	
					21 lines
				
				508 B
			| 
											4 years ago
										 | ## this script deploys the static website of course.rs to github pages | ||
| 
											4 years ago
										 | 
 | ||
| 
											4 years ago
										 | ## build static website for book | ||
| 
											4 years ago
										 | mdbook build | ||
| 
											4 years ago
										 | ## copy CNAME info to book dir | ||
| 
											4 years ago
										 | cp ./assets/CNAME ./book/ | ||
| 
											4 years ago
										 | cp ./assets/*.html ./book/ | ||
| 
											4 years ago
										 | cp ./assets/sitemap.xml ./book/ | ||
| 
											4 years ago
										 | 
 | ||
|  | ## init git repo | ||
| 
											4 years ago
										 | cd book | ||
|  | git init | ||
|  | git config user.name "sunface" | ||
|  | git config user.email "cto@188.com" | ||
|  | git add . | ||
| 
											4 years ago
										 | git commit -m 'deploy' | ||
| 
											4 years ago
										 | git branch -M gh-pages | ||
| 
											4 years ago
										 | git remote add origin https://github.com/sunface/rust-course | ||
| 
											4 years ago
										 | 
 | ||
|  | ## push to github pages | ||
| 
											4 years ago
										 | git push -u -f origin gh-pages |