| 
									
										
										
										
											2015-04-17 00:28:38 +00:00
										 |  |  | #!/usr/bin/env bash | 
					
						
							|  |  |  | # Usage: script/release | 
					
						
							| 
									
										
										
										
											2014-12-15 19:44:51 +00:00
										 |  |  | # Build the package, tag a commit, push it to origin, and then release the | 
					
						
							|  |  |  | # package publicly. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set -e | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | version="$(script/package | grep Version: | awk '{print $2}')" | 
					
						
							|  |  |  | [ -n "$version" ] || exit 1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | git commit --allow-empty -a -m "Release $version" | 
					
						
							|  |  |  | git tag "$version" | 
					
						
							|  |  |  | git push --tags origin | 
					
						
							|  |  |  | gem push pkg/*-${version}.gem | 
					
						
							|  |  |  | 
 |